]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.19.7/mips-loongson-3-add-irqf_no_suspend-to-cascade-irqaction.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.19.7 / mips-loongson-3-add-irqf_no_suspend-to-cascade-irqaction.patch
CommitLineData
c9c77b0b
GKH
1From 0add9c2f1cff9f3f1f2eb7e9babefa872a9d14b9 Mon Sep 17 00:00:00 2001
2From: Huacai Chen <chenhc@lemote.com>
3Date: Thu, 12 Mar 2015 11:51:06 +0800
4Subject: MIPS: Loongson-3: Add IRQF_NO_SUSPEND to Cascade irqaction
5
6From: Huacai Chen <chenhc@lemote.com>
7
8commit 0add9c2f1cff9f3f1f2eb7e9babefa872a9d14b9 upstream.
9
10HPET irq is routed to i8259 and then to MIPS CPU irq (cascade). After
11commit a3e6c1eff5 (MIPS: IRQ: Fix disable_irq on CPU IRQs), if without
12IRQF_NO_SUSPEND in cascade_irqaction, HPET interrupts will lost during
13suspend. The result is machine cannot be waken up.
14
15Signed-off-by: Huacai Chen <chenhc@lemote.com>
16Cc: Steven J. Hill <Steven.Hill@imgtec.com>
17Cc: linux-mips@linux-mips.org
18Cc: Fuxin Zhang <zhangfx@lemote.com>
19Cc: Zhangjin Wu <wuzhangjin@gmail.com>
20Patchwork: https://patchwork.linux-mips.org/patch/9528/
21Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
22Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23
24---
25 arch/mips/loongson/loongson-3/irq.c | 1 +
26 1 file changed, 1 insertion(+)
27
28--- a/arch/mips/loongson/loongson-3/irq.c
29+++ b/arch/mips/loongson/loongson-3/irq.c
30@@ -44,6 +44,7 @@ void mach_irq_dispatch(unsigned int pend
31
32 static struct irqaction cascade_irqaction = {
33 .handler = no_action,
34+ .flags = IRQF_NO_SUSPEND,
35 .name = "cascade",
36 };
37