dmaengine: at_xdmac: fix residue corruption
authorLudovic Desroches <ludovic.desroches@atmel.com>
Thu, 12 May 2016 14:54:09 +0000 (16:54 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 30 May 2016 05:17:52 +0000 (10:47 +0530)
commit53398f488821c2b5b15291e3debec6ad33f75d3d
tree3974eaea9bd86f6304484101647ac0ea5a3c409e
parent4a9723e8df68cfce4048517ee32e37f78854b6fb
dmaengine: at_xdmac: fix residue corruption

An unexpected value of CUBC can lead to a corrupted residue. A more
complex sequence is needed to detect an inaccurate value for NCA or CUBC.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Fixes: e1f7c9eee707 ("dmaengine: at_xdmac: creation of the atmel
eXtended DMA Controller driver")
Cc: stable@vger.kernel.org #v4.1 and later
Reviewed-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_xdmac.c