]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
irqchip/sunxi-nmi: Add missing SKIP_WAKE flag
authorPhilippe Simons <simons.philippe@gmail.com>
Sun, 12 Jan 2025 12:34:02 +0000 (13:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Feb 2025 17:24:00 +0000 (18:24 +0100)
commit72370a2bc2e649f28ce7445f922435ba0ce36e00
tree7054d153656ae25560a03be068baa44a187fda3b
parent46bdd737a16b579640c1a2f2cf6c9442f5ffa241
irqchip/sunxi-nmi: Add missing SKIP_WAKE flag

[ Upstream commit 3a748d483d80f066ca4b26abe45cdc0c367d13e9 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-sunxi-nmi.c