dmaengine: at_hdmac: set residue as total len in atc_tx_status
commit543aabc7d295bfe2489f184259395e3467520d48
authorNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 6 May 2011 17:56:51 +0000 (6 19:56 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 9 May 2011 06:12:45 +0000 (9 11:42 +0530)
treedea913d2242b7aa5530616c428d79cfdcd06b6e6
parent711b9cea92554be6bd44f04f2485582d762fc441
dmaengine: at_hdmac: set residue as total len in atc_tx_status

If transfer status is !=DMA_SUCCESS, return total transfer len as residue,
instead of zero.

Idea from dw_dmac patch by Viresh Kumar.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_hdmac.c