]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: sprd: Get transfer residue depending on the transfer direction
authorEric Long <eric.long@spreadtrum.com>
Tue, 6 Nov 2018 05:01:32 +0000 (13:01 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 5 Dec 2018 08:57:11 +0000 (14:27 +0530)
commit40d44beaf228ef864dd253f8a675f89b373b25c0
tree16ce83a4ae2e985e3894aff9e17638b7be3ccc74
parent14bbff78ee6435dffcc5ca81cf58770e629ef5ce
dmaengine: sprd: Get transfer residue depending on the transfer direction

Add one field to save the transfer direction for struct sprd_dma_desc,
which is used to get correct transfer residue depending on the transfer
direction.

[Baolin Wang adds one field to present the transfer direction]
Signed-off-by: Eric Long <eric.long@spreadtrum.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sprd-dma.c