dmaengine: ti: k3-udma: Fix the running channel handling in alloc_chan_resources
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 27 May 2020 07:06:12 +0000 (10:06 +0300)
committerVinod Koul <vkoul@kernel.org>
Tue, 16 Jun 2020 15:56:03 +0000 (21:26 +0530)
commitb5b0180c2f767e90b4a6a885a0a2abaab6e3d48d
treeca337d857d6f43964f78cd5271a72b819da392ec
parent5a9377cc7421b59b13c9b90b8dc0aca332a1c958
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 <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20200527070612.636-3-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/k3-udma.c