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 <sugar.zhang@rock-chips.com>
Change-Id: I1e104d2eadb5ba2c7271a830fa35a047891562c0
This commit is contained in:
Sugar Zhang
2024-11-23 11:19:31 +08:00
committed by Tao Huang
parent 4b09c335c2
commit 0f41390f2f

View File

@@ -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)