dmaengine/dw_dmac: set residue as total len in dwc_tx_status if status is !DMA_SUCCESS
authorViresh Kumar <viresh.kumar@st.com>
Fri, 15 Apr 2011 10:33:35 +0000 (16:03 +0530)
committerVinod Koul <vinod.koul@intel.com>
Fri, 13 May 2011 14:09:55 +0000 (19:39 +0530)
commitabf53902dcc6d44d2e06b09817fa67857aa686fe
tree0477e3e51d0f392fec140b190aad02045fcdc3a5
parent5fedefb87bd0a64281d28edd295f29e3b989d78c
dmaengine/dw_dmac: set residue as total len in dwc_tx_status if status is !DMA_SUCCESS

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

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw_dmac.c