From: Thomas Gleixner Date: Mon, 28 Apr 2014 19:18:45 +0000 (-0500) Subject: dmaengine: edma: Sanitize residue reporting X-Git-Tag: omap-for-v3.16/fixes-against-rc1~69^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6205c39011e52e2f7983c3dba01ee51524ae29c;p=pandora-kernel.git dmaengine: edma: Sanitize residue reporting The residue reporting in edma_tx_status() is just broken. It blindly walks the psets and recalculates the lenght of the transfer from the hardware parameters. For cyclic transfers it adds the link pset, which results in interestingly large residues. For non-cyclic it adds the dummy pset, which is stupid as well. Aside of that it's silly to walk through the pset params when the per descriptor residue is known at the point of creating it. Store the information in edma_desc and use it. Signed-off-by: Thomas Gleixner Signed-off-by: Joel Fernandes Signed-off-by: Vinod Koul --- Reading git-diff-tree failed