dmaengine: ti: k3-udma-glue: move psi-l pairing in channel en/dis functions
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 30 Oct 2020 20:30:00 +0000 (22:30 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 9 Nov 2020 11:54:01 +0000 (17:24 +0530)
commit69973b4895b35a67409c8ce1c3d62090470ef47b
treeeddfb3397db42afce8d59ae15efd0035a93d384c
parent6349753276a657b423460b93c2f511c73bb0a118
dmaengine: ti: k3-udma-glue: move psi-l pairing in channel en/dis functions

The NAVSS UDMA will stuck if target IP module is disabled by PM while PSI-L
threads are paired UDMA<->IP and no further transfers is possible. This
could be the case for IPs J721E Main CPSW (cpsw9g).

Hence, to avoid such situation do PSI-L threads pairing only when UDMA
channel is going to be enabled as at this time DMA consumer module expected
to be active already.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20201030203000.4281-1-grygorii.strashko@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/k3-udma-glue.c