]> git.baikalelectronics.ru Git - kernel.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>
Tue, 31 Jul 2012 11:06:21 +0000 (12:06 +0100)
commitdf9b34884259306d37774d8cf51435504a08097b
treee793d4d24faf61ebedeb96280ce4564643d1235b
parentc7d07e0d1525eaef52631dbc0db865aa4a97a679
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