From 0f41390f2fc69a142dd1a4e57af1dc30a23b2538 Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Sat, 23 Nov 2024 11:19:31 +0800 Subject: [PATCH] dmaengine: pl330: Report DMA_IN_PROGRESS for infinitely cyclic The infinitely cyclic without CPU intervention use the single desc, so, should always return DMA_IN_PROGRESS to match its status. Signed-off-by: Sugar Zhang Change-Id: I1e104d2eadb5ba2c7271a830fa35a047891562c0 --- drivers/dma/pl330.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 4b27841a6d22..a796ffcafb42 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2695,6 +2695,13 @@ pl330_tx_status(struct dma_chan *chan, dma_cookie_t cookie, default: WARN_ON(1); } + /* + * The infinitely cyclic without CPU intervention + * use the single desc, so, should always return + * DMA_IN_PROGRESS to match its status. + */ + if (desc->cyclic) + ret = DMA_IN_PROGRESS; break; } if (desc->last)