From: Andy Shevchenko Date: Fri, 25 Jan 2013 09:48:03 +0000 (+0200) Subject: dw_dmac: return proper residue value X-Git-Tag: v3.9-rc1~80^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4702d5244ca947263e8b7eb2ba6d8721e80c46e2;p=pandora-kernel.git dw_dmac: return proper residue value Currently the driver returns full length of the active descriptor which is wrong. We have to go throught the active descriptor and substract the length of each sent children in the chain from the total length along with the actual data in the DMA channel registers. The cyclic case is not handled by this patch due to len field in the descriptor structure is left untouched by the original code. Signed-off-by: Andy Shevchenko Acked-by: Viresh Kumar Signed-off-by: Vinod Koul --- Reading git-diff-tree failed