]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: axi-dmac: populate residue info for completed xfers
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Thu, 6 Jun 2019 10:45:48 +0000 (13:45 +0300)
committerVinod Koul <vkoul@kernel.org>
Fri, 14 Jun 2019 05:52:43 +0000 (11:22 +0530)
commit5521857f4a096a04112575ad5171b4390599bc9d
tree0e1764fe94801d60fb40e35d10bb83d69064ba9b
parent4009a23be4f6eaa2a49a160d7904b5dacd30c8cc
dmaengine: axi-dmac: populate residue info for completed xfers

Starting with version 4.2.a, the AXI DMAC controller can report partial
transfers that have been issued.

This change implements computing DMA residue information for transfers,
based on that reported information.

The way this is done, is to dequeue the partial transfers from the FIFO of
partial transfers, store the partial length to the correct segment &
descriptor, and compute the residue before submitting the DMA cookie to the
DMA framework.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-axi-dmac.c