Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de0096d8 authored by Martin Fuzzey's avatar Martin Fuzzey Committed by Sascha Hauer
Browse files

mxc : Clean up properly when imx_dma_free() used without imx_dma_disable()



The sequence
	imx_dma_request()
	imx_dma_enable()
	imx_dma_free()
left the dma channel in_use mode and did not release the timer.

Signed-off-by: default avatarMartin Fuzzey <mfuzzey@gmail.com>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent b4348f32
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -737,10 +737,7 @@ void imx_dma_free(int channel)

	local_irq_save(flags);
	/* Disable interrupts */
	__raw_writel(__raw_readl(DMA_BASE + DMA_DIMR) | (1 << channel),
		DMA_BASE + DMA_DIMR);
	__raw_writel(__raw_readl(DMA_BASE + DMA_CCR(channel)) & ~CCR_CEN,
		DMA_BASE + DMA_CCR(channel));
	imx_dma_disable(channel);
	imxdma->name = NULL;

#ifdef CONFIG_ARCH_MX2