Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dma: mmp_tdma: disable irq when disabling dma channel

mask dma irq when disabling dma channel, so that interrupt status
will not be set and interrupt won't come again.

Signed-off-by: Qiao Zhou <zhouqiao@marvell.com>
Acked-by: Zhangfei Gao <zhangfei.gao@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Qiao Zhou and committed by
Vinod Koul
8e3c518f d7cabeed

+4
+4
drivers/dma/mmp_tdma.c
··· 154 154 { 155 155 writel(readl(tdmac->reg_base + TDCR) & ~TDCR_CHANEN, 156 156 tdmac->reg_base + TDCR); 157 + 158 + /* disable irq */ 159 + writel(0, tdmac->reg_base + TDIMR); 160 + 157 161 tdmac->status = DMA_SUCCESS; 158 162 } 159 163