]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: sprd: Set cur_desc as NULL when free or terminate one dma channel
authorEric Long <eric.long@spreadtrum.com>
Tue, 6 Nov 2018 05:01:34 +0000 (13:01 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 5 Dec 2018 08:57:12 +0000 (14:27 +0530)
commit57558997c9fe548ad10245cf9527c2dbbb29e4c1
tree8b3f575e8ce263dd88915a0cb569cfb671a0c19f
parent5a0c8c0b1cf6c313084fe76b60ad7810ef97860f
dmaengine: sprd: Set cur_desc as NULL when free or terminate one dma channel

It will be failed to start one new transfer if the channel started one
none interrupt transfer before, since we will only set the schan->cur_desc
as NULL depending on the transfer interrupt now. Thus we should set
schan->cur_desc as NULL when free or terminate one dma channel to
avoid this issue.

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