]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: omap: add support for returning residue in tx_state method
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 21 Jun 2012 09:37:35 +0000 (10:37 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 1 Jul 2012 13:16:59 +0000 (14:16 +0100)
commit9059ac5902f4c18eaaea8bc6a0c8f667c8d7ca01
treedef7e1c126b3f831c8b538f239f2257a619bab68
parent06dba53e6fcf755929fec6e1585b015b1d48868c
dmaengine: omap: add support for returning residue in tx_state method

Add support for returning the residue for a particular descriptor by
reading the current DMA address for the source or destination side of
the transfer as appropriate, and walking the scatterlist until we find
an entry containing the current DMA address.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/dma/omap-dma.c