]> Gentwo Git Trees - linux/.git/commit
Input: pm8941-pwrkey - disable wakeup for resin by default
authorLuca Weiss <luca@lucaweiss.eu>
Tue, 9 Sep 2025 15:02:14 +0000 (08:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 25 Sep 2025 05:43:07 +0000 (22:43 -0700)
commit9712fe00a7728c64be7e51f05162aafea231a929
tree6a91cacdd3aa8d799d70b3d2027c1bfbfb62dbb2
parent95e6b0af80525d14cb35fc664dd3ce5d5756dac1
Input: pm8941-pwrkey - disable wakeup for resin by default

'Resin' (*Res*et *In*put) is usually connected to a volume down button
on devices, which is usually not expected to wake up the device from
suspend.

On the other hand, pwrkey should keep wakeup on. So do not enable wakeup
for resin unless the "wakeup-source" property is specified in
devicetree.

Note, that this does change behavior by turning off wakeup by default
for 'resin' and requiring a new dt property to be added to turn it on
again. But since this is not expected behavior in the first place, and
most users will not expect this, I'd argue this change is acceptable.

Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250909-resin-wakeup-v1-2-46159940e02b@lucaweiss.eu
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/pm8941-pwrkey.c