dmaengine: stm32-dma: clean channel configuration when channel is freed
authorAmelie Delaunay <amelie.delaunay@st.com>
Fri, 20 Nov 2020 14:33:18 +0000 (15:33 +0100)
committerVinod Koul <vkoul@kernel.org>
Fri, 11 Dec 2020 15:43:08 +0000 (21:13 +0530)
commit5d4d4dfbda18063231a95dea28fdeab148f23301
tree690625bf55454041b52c1ec3778bca80b4c9590d
parenta44d9d72453ea6b064380d4835e712e574e58d9b
dmaengine: stm32-dma: clean channel configuration when channel is freed

When dma_channel_release is called, it means that the channel won't be used
anymore with the configuration it had. To ensure a future client can safely
use the channel after it has been released, clean the configuration done
when channel was requested.

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Link: https://lore.kernel.org/r/20201120143320.30367-3-amelie.delaunay@st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/stm32-dma.c