Re: [PATCH 07/10] Input: axp20x-pek - skip IRQ handling during sleep without input device
From: Dmitry Torokhov
Date: Mon Nov 23 2026 - 15:22:43 EST
On Mon, Nov 23, 2026 at 06:31:13PM +0000, Lee Jones wrote:
> On Cherry Trail systems where an ACPI GPIO button device already handles
> the power button, axp20x_pek_should_register_input() returns false and
> axp20x_pek_probe() skips axp20x_pek_probe_input_device(). This leaves
> axp20x_pek->input NULL and both irq_dbr and irq_dbf zero-initialised.
>
> axp20x_pek_suspend() and axp20x_pek_resume() nevertheless pass irq_dbf
> and irq_dbr unconditionally to disable_irq(), enable_irq(), and their
> wakeup counterparts, manipulating IRQ 0 (the legacy x86 system timer)
> across suspend and resume.
>
> Skip interrupt management in axp20x_pek_suspend() and
> axp20x_pek_resume() when no input device was registered.
>
> Fixes: 8a78050ee257 ("Input: axp20x-pek - revert "always register interrupt handlers" change")
> Closes: https://sashiko.dev/#/bug/linux-5ae6851f-784e-481c-900b-2e1686578c89
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Lee Jones <lee@xxxxxxxxxx>
Applied, thank you.
--
Dmitry