mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user