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)
committerVinod Koul <vkoul@kernel.org>
Mon, 7 Jun 2021 06:53:47 +0000 (12:23 +0530)
commit2537b40b0a4f61d2c83900744fe89b09076be9c6
treeb8ef2fd4261ceea0dd8a8ba1f9127db54f8fb7dc
parent0a2ff58f9f8f95526ecb0ccd7517fefceb96f661
dmaengine: mediatek: do not issue a new desc if one is still current

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>
drivers/dma/mediatek/mtk-uart-apdma.c