From 6fc8340fa1bebd81898099edbba0f4abfd06da29 Mon Sep 17 00:00:00 2001 From: Seokju Yoon Date: Tue, 24 Nov 2015 15:02:43 +0900 Subject: [PATCH] dma: pl330: clear interrupt flag in dma stop Change-Id: Ibd286459dfd26d2d2cbdea4f127bf1eaccf646ba Signed-off-by: Seokju Yoon --- drivers/dma/pl330.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); } -- 2.20.1