From: Seokju Yoon Date: Tue, 24 Nov 2015 06:02:43 +0000 (+0900) Subject: dma: pl330: clear interrupt flag in dma stop X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6fc8340fa1bebd81898099edbba0f4abfd06da29;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git dma: pl330: clear interrupt flag in dma stop Change-Id: Ibd286459dfd26d2d2cbdea4f127bf1eaccf646ba Signed-off-by: Seokju Yoon --- diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index e5539f902bd0..6b202c755aea 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -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)); }