]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: imx-sdma - update the residue calculation for cyclic channels
authorNandor Han <nandor.han@ge.com>
Mon, 8 Aug 2016 12:38:26 +0000 (15:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2016 14:27:28 +0000 (16:27 +0200)
commit443c0b60fa12b806fb17af9204a030fad39b763d
treedbefd9fb0d60e0f531c2343e4d130326bd360112
parentd198c9e98a821e6ef89128e21821440aa5ec35fe
dmaengine: imx-sdma - update the residue calculation for cyclic channels

The calculation of the DMA transaction residue supports only fixed
size data transfers. This implementation is not covering all
operations (e.g. data receiving) when we need to know the exact amount
of bytes transferred.

The loop channels handling was changed to clear the buffer
descriptor errors and use the bd->mode.count to calculate the
residue.

Tested-by: Peter Senna Tschudin <peter.senna@collabora.com>
Acked-by: Peter Senna Tschudin <peter.senna@collabora.com>
Reviewed-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Nandor Han <nandor.han@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/imx-sdma.c