dmaengine: PL08x: fix tx_status function to return correct residue
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 May 2012 14:05:52 +0000 (15:05 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 1 Jul 2012 13:16:02 +0000 (14:16 +0100)
commit06e885b735717d1074dec13ae8b8d15edcd63255
tree5ec195fcd23958ade1b91f9cbae854a86f2791c1
parent18536134abd6b8157d5cb11162606cc264d07232
dmaengine: PL08x: fix tx_status function to return correct residue

Now that we're converted to use the generic vchan support, we can fix
the residue return from tx_status to be compliant with dmaengine.  This
returns the number of bytes remaining for the _specified_ cookie, not
the number of bytes in all pending transfers on the channel.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/dma/amba-pl08x.c