dma: pl330: clear interrupt flag in dma stop
authorSeokju Yoon <sukju.yoon@samsung.com>
Tue, 24 Nov 2015 06:02:43 +0000 (15:02 +0900)
committerTaekki Kim <taekki.kim@samsung.com>
Mon, 14 May 2018 05:42:47 +0000 (14:42 +0900)
Change-Id: Ibd286459dfd26d2d2cbdea4f127bf1eaccf646ba
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
drivers/dma/pl330.c

index e5539f902bd0ae70ef60a6a1b2aa2f74dca49f11..6b202c755aea94300ae24910109a21a872555b55 100644 (file)
@@ -994,8 +994,9 @@ static void _stop(struct pl330_thread *thrd)
 
        _emit_KILL(0, insn);
 
-       /* Stop generating interrupts for SEV */
+       /* Stop generating interrupts and clear pandding interrupts for SEV */
        writel(readl(regs + INTEN) & ~(1 << thrd->ev), regs + INTEN);
+       writel(1 << thrd->ev, regs + INTCLR);
 
        _execute_DBGINSN(thrd, insn, is_manager(thrd));
 }