Skip to content

Commit b5b0180

Browse files
Peter Ujfalusivinodkoul
authored andcommitted
dmaengine: ti: k3-udma: Fix the running channel handling in alloc_chan_resources
In the unlikely case when the channel is running (RT enabled) during alloc_chan_resources then we should use udma_reset_chan() and not udma_stop() as the later is trying to initiate a teardown on the channel, which is not valid at this point. Signed-off-by: Peter Ujfalusi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 5a9377c commit b5b0180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/ti/k3-udma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,7 @@ static int udma_alloc_chan_resources(struct dma_chan *chan)
18481848

18491849
if (udma_is_chan_running(uc)) {
18501850
dev_warn(ud->dev, "chan%d: is running!\n", uc->id);
1851-
udma_stop(uc);
1851+
udma_reset_chan(uc, false);
18521852
if (udma_is_chan_running(uc)) {
18531853
dev_err(ud->dev, "chan%d: won't stop!\n", uc->id);
18541854
ret = -EBUSY;

0 commit comments

Comments
 (0)