Home
last modified time | relevance | path

Searched hist:"09 f7b80fac3e588b282ad26aabd7336d7d293efd" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/dma/
H A Dimx-sdma.cdiff 09f7b80fac3e588b282ad26aabd7336d7d293efd Fri Jun 17 06:50:42 CDT 2022 Sascha Hauer <s.hauer@pengutronix.de> dmaengine: imx-sdma: only restart cyclic channel when enabled

An interrupt for a channel might be pending even after struct
dma_device::device_terminate_all has been called. In that case the
recently introduced warning message "restart cyclic channel..." triggers
and the channel will be restarted. This is not desired as the channel
has just been stopped. Only restart the channel when we still have a
descriptor set for it (which will be set to NULL in
sdma_terminate_all()).

Fixes: 5b215c28b9235 ("dmaengine: imx-sdma: restart cyclic channel if needed")
Cc: stable@vger.kernel.org
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.kernel.org/r/20220617115042.4004062-1-s.hauer@pengutronix.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>