MLK-9768: dma: imx-sdma: fix UART loopback random failed
authorRobin Gong <b38343@freescale.com>
Mon, 8 Dec 2014 09:30:40 +0000 (17:30 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:24 +0000 (14:47 -0500)
commitb36f1072c260f956242de0aec7cab9afec18ce97
tree57dcb825f125d2c53e7e491f6a94a9a5d05ea26f
parentbba88716ec63c1a46bee77e013354c0b4c97c48f
MLK-9768: dma: imx-sdma: fix UART loopback random failed

For UART, we need use old chn_real_count to know the real rx count even in
cylic dma mode, because UART driver use cyclic mode to increase performance
without any data loss.

Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit 398cee2ad110c4f183e553af0564fbdcbe8548cb)
drivers/dma/imx-sdma.c