dmaengine: sirf: clear pending DMA interrupt when DMA terminates
authorYanchang Li <yl22@csr.com>
Mon, 27 Jul 2015 05:50:21 +0000 (05:50 +0000)
committerVinod Koul <vinod.koul@intel.com>
Tue, 18 Aug 2015 16:43:59 +0000 (22:13 +0530)
commitac9bd0ef5d3eefe9a21a7df6819937e3aa265203
tree261e88c267b04b430f904babda03e9e79e533288
parentdf48f3ff95c432cc3469e0df67da76ffcf2237af
dmaengine: sirf: clear pending DMA interrupt when DMA terminates

If DMA interrupt comes and is latched by IRQ controller during the
execution of dma_terminate_all(), dma_irq routine will be executed
after dma terminated, and it will cause kernel panic.
We clear DMA interrupts in dma_terminate_all() to avoid this useless
interrupt.

Signed-off-by: Yanchang Li <Yanchang.Li@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sirf-dma.c