mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 23:50:26 +09:00
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 <vigneshr@ti.com> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
This commit is contained in:
parent
6d7364016a
commit
85bdcf03b7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user