From: Vignesh Raghavendra Date: Thu, 17 Sep 2020 14:41:22 +0000 (+0530) Subject: dma: ti: k3-udma: Reset the channel during release X-Git-Tag: v2025.01-rc5-pxa1908~2182^2~5 X-Git-Url: http://git.dujemihanovic.xyz/html/%7B%7B%20.Permalink%20%7D%7D?a=commitdiff_plain;h=85bdcf03b79bb35b98fce26d8dd064cc1165917a;p=u-boot.git dma: ti: k3-udma: Reset the channel during release Reset the channel completely during channel release in order to clear teardown bit before handing over to next user or jumping to Linux. Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index 57d9fbfabb..94216045cc 100644 --- a/drivers/dma/ti/k3-udma.c +++ b/drivers/dma/ti/k3-udma.c @@ -1134,7 +1134,9 @@ err_free_res: static void udma_free_chan_resources(struct udma_chan *uc) { - /* Some configuration to UDMA-P channel: disable, reset, whatever */ + /* Hard reset UDMA channel */ + udma_stop_hard(uc); + udma_reset_counters(uc); /* Release PSI-L pairing */ udma_navss_psil_unpair(uc->ud, uc->config.src_thread, uc->config.dst_thread);