]>
Commit | Line | Data |
---|---|---|
c9c77b0b GKH |
1 | From 0add9c2f1cff9f3f1f2eb7e9babefa872a9d14b9 Mon Sep 17 00:00:00 2001 |
2 | From: Huacai Chen <chenhc@lemote.com> | |
3 | Date: Thu, 12 Mar 2015 11:51:06 +0800 | |
4 | Subject: MIPS: Loongson-3: Add IRQF_NO_SUSPEND to Cascade irqaction | |
5 | ||
6 | From: Huacai Chen <chenhc@lemote.com> | |
7 | ||
8 | commit 0add9c2f1cff9f3f1f2eb7e9babefa872a9d14b9 upstream. | |
9 | ||
10 | HPET irq is routed to i8259 and then to MIPS CPU irq (cascade). After | |
11 | commit a3e6c1eff5 (MIPS: IRQ: Fix disable_irq on CPU IRQs), if without | |
12 | IRQF_NO_SUSPEND in cascade_irqaction, HPET interrupts will lost during | |
13 | suspend. The result is machine cannot be waken up. | |
14 | ||
15 | Signed-off-by: Huacai Chen <chenhc@lemote.com> | |
16 | Cc: Steven J. Hill <Steven.Hill@imgtec.com> | |
17 | Cc: linux-mips@linux-mips.org | |
18 | Cc: Fuxin Zhang <zhangfx@lemote.com> | |
19 | Cc: Zhangjin Wu <wuzhangjin@gmail.com> | |
20 | Patchwork: https://patchwork.linux-mips.org/patch/9528/ | |
21 | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | |
22 | Signed-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 |