Skip to content

Commit 273a482

Browse files
loki666mehmetb0
authored andcommitted
irqchip/sunxi-nmi: Add missing SKIP_WAKE flag
BugLink: https://bugs.launchpad.net/bugs/2098441 [ Upstream commit 3a748d4 ] Some boards with Allwinner SoCs connect the PMIC's IRQ pin to the SoC's NMI pin instead of a normal GPIO. Since the power key is connected to the PMIC, and people expect to wake up a suspended system via this key, the NMI IRQ controller must stay alive when the system goes into suspend. Add the SKIP_WAKE flag to prevent the sunxi NMI controller from going to sleep, so that the power key can wake up those systems. [ tglx: Fixed up coding style ] Signed-off-by: Philippe Simons <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Noah Wager <[email protected]> Signed-off-by: Koichiro Den <[email protected]>
1 parent 50bfbb8 commit 273a482

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/irqchip/irq-sunxi-nmi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ static int __init sunxi_sc_nmi_irq_init(struct device_node *node,
187187
gc->chip_types[0].chip.irq_unmask = irq_gc_mask_set_bit;
188188
gc->chip_types[0].chip.irq_eoi = irq_gc_ack_set_bit;
189189
gc->chip_types[0].chip.irq_set_type = sunxi_sc_nmi_set_type;
190-
gc->chip_types[0].chip.flags = IRQCHIP_EOI_THREADED | IRQCHIP_EOI_IF_HANDLED;
190+
gc->chip_types[0].chip.flags = IRQCHIP_EOI_THREADED | IRQCHIP_EOI_IF_HANDLED |
191+
IRQCHIP_SKIP_SET_WAKE;
191192
gc->chip_types[0].regs.ack = reg_offs->pend;
192193
gc->chip_types[0].regs.mask = reg_offs->enable;
193194
gc->chip_types[0].regs.type = reg_offs->ctrl;

0 commit comments

Comments
 (0)