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)
commitd762ab33ccd03e8c1ad50b814d2deccec15b8c28
tree16ce83a4ae2e985e3894aff9e17638b7be3ccc74
parenta0ecabf503413446f08deb8f7226b6135cf922b0
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