]> 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)
commit281720a4a376e2df79b81ed45968ab61069db2a4
tree16ce83a4ae2e985e3894aff9e17638b7be3ccc74
parent8bebf36d38b6b29e2fb3df8e5165d0b5d2617d41
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