dmaengine: at_xdmac: fix bad behavior in interleaved mode
authorSylvain ETIENNE <Sylvain.ETIENNE@ingenico.com>
Wed, 2 Dec 2015 16:10:16 +0000 (17:10 +0100)
committerVinod Koul <vinod.koul@intel.com>
Sat, 5 Dec 2015 08:46:23 +0000 (14:16 +0530)
commitef10b0b24143238c4457e0e60ec230b0fcc342a4
tree4c614490777d901053318c7b3da8a5cbeb56e452
parentf5a00eb71902292c5a77d7cc27bdafd09ba3c112
dmaengine: at_xdmac: fix bad behavior in interleaved mode

When performing interleaved transfers with numf > 1, an extra line is
copied. The mbr.bc field is incremented once too often. The length of
the block is (BLEN+1) microblocks.

Signed-off-by: Sylvain ETIENNE <Sylvain.ETIENNE@ingenico.com>
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Fixes: 4e5385784e69 ("dmaengine: at_xdmac: handle numf > 1")
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_xdmac.c