dmaengine: mediatek: do not issue a new desc if one is still current
authorGuillaume Ranquet <granquet@baylibre.com>
Thu, 13 May 2021 19:26:41 +0000 (21:26 +0200)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:47:20 +0000 (08:47 -0400)
commit0f48f927718252cde6ca55a67efcd9ba4ed6ca21
tree36ea62e20de946ab125d72c209c98123d6919660
parent63fa5b2d4b55ebf4d12e7b4d536ae3e63117cd1a
dmaengine: mediatek: do not issue a new desc if one is still current

[ Upstream commit 2537b40b0a4f61d2c83900744fe89b09076be9c6 ]

Avoid issuing a new desc if one is still being processed as this can
lead to some desc never being marked as completed.

Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
Link: https://lore.kernel.org/r/20210513192642.29446-3-granquet@baylibre.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/mediatek/mtk-uart-apdma.c