irqchip/sunxi-nmi: Add missing SKIP_WAKE flag

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 <simons.philippe@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250112123402.388520-1-simons.philippe@gmail.com

authored by

Philippe Simons and committed by
Thomas Gleixner
3a748d48 35cb2c6c

+2 -1
+2 -1
drivers/irqchip/irq-sunxi-nmi.c
··· 186 186 gc->chip_types[0].chip.irq_unmask = irq_gc_mask_set_bit; 187 187 gc->chip_types[0].chip.irq_eoi = irq_gc_ack_set_bit; 188 188 gc->chip_types[0].chip.irq_set_type = sunxi_sc_nmi_set_type; 189 - gc->chip_types[0].chip.flags = IRQCHIP_EOI_THREADED | IRQCHIP_EOI_IF_HANDLED; 189 + gc->chip_types[0].chip.flags = IRQCHIP_EOI_THREADED | IRQCHIP_EOI_IF_HANDLED | 190 + IRQCHIP_SKIP_SET_WAKE; 190 191 gc->chip_types[0].regs.ack = reg_offs->pend; 191 192 gc->chip_types[0].regs.mask = reg_offs->enable; 192 193 gc->chip_types[0].regs.type = reg_offs->ctrl;