Skip to content

dmaengine: ti: k3-udma: Fixes for alloc_chan_resources

Peter Ujfalusi dmaengine 1 version Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2dmaengine: ti: k3-udma: Fix cleanup code for alloc_chan_resourcesdrivers/dma/ti/k3-udma.c+16 -150 replies
2/2dmaengine: ti: k3-udma: Fix the running channel handling in alloc_chan_resourcesdrivers/dma/ti/k3-udma.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] dmaengine: ti: k3-udma: Fixes for alloc_chan_resources

Hi,

It turned out that udma_stop() can not be used to stop the channel which was left enabled during boot (missing cleanup in early boot) since it would initiate teardown. This is not supported on non configured channels.
Simply reset the running channel instead fixes the issue.

While looking at this issue I have noticed that the cleanup path misses resources if the error happens early.

Regards,
Peter
---
Peter Ujfalusi (2):
dmaengine: ti: k3-udma: Fix cleanup code for alloc_chan_resources
dmaengine: ti: k3-udma: Fix the running channel handling in
alloc_chan_resources

 drivers/dma/ti/k3-udma.c | 33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)
Signature · 4 lines
Peter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki