dmaengine: at_xdmac: fix a bug in transfer residue computation
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Thu, 13 Nov 2014 10:52:42 +0000 (11:52 +0100)
committerVinod Koul <vinod.koul@intel.com>
Mon, 17 Nov 2014 08:37:20 +0000 (14:07 +0530)
commit57819276db8ae06e231b884377b75860f267d984
tree5ef3c0bd360f0390ba4d60895ae938ae19a80c22
parent4e0978208d67730a316066911201a6252158d2fd
dmaengine: at_xdmac: fix a bug in transfer residue computation

The total size of the transfer was wrong in at_xdmac_prep_slave_sg()
resulting in bad computation of the transfer residue by
at_xdmac_tx_status().

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_xdmac.c