Input: pm8941-pwrkey - report wakeup events
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@yoxcu.de>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://patch.msgid.link/20261123130336.1316006-1-mick@yoxcu.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 file changed