Re: [PATCH v2] Input: pm8941-pwrkey - report wakeup events

From: Dmitry Torokhov

Date: Mon Nov 23 2026 - 13:12:12 EST


On Mon, Nov 23, 2026 at 02:03:36PM +0100, Michael Auer wrote:
> The power key (and resin, with "wakeup-source") is a wakeup source, but
> the driver never reports a wakeup event. Its wakeup_count in
> /sys/class/wakeup stays 0 even after it woke the system, so user space
> cannot tell a key press from other wakeups. PowerDevil, for example,
> uses the wakeup counts to decide whether to turn the display on after
> resume.
>
> Report a wakeup event from the interrupt handler, as other power key
> drivers do.
>
> Signed-off-by: Michael Auer <mick@xxxxxxxx>

Applied, thank you.

--
Dmitry