diff options
author | 2025-03-06 12:50:21 +0100 | |
---|---|---|
committer | 2025-05-10 22:26:33 -0700 | |
commit | e98960bc4df931a2f4fa88f7e55370699ca4dd82 (patch) | |
tree | a83d08280594a6508da23d06397913c1208b1ac4 | |
parent | Input: synaptics - enable InterTouch on Dell Precision M3800 (diff) | |
download | wireguard-linux-e98960bc4df931a2f4fa88f7e55370699ca4dd82.tar.xz wireguard-linux-e98960bc4df931a2f4fa88f7e55370699ca4dd82.zip |
Input: hisi_powerkey - enable system-wakeup for s2idle
To wake up the system from s2idle when pressing the power-button, let's
convert from using pm_wakeup_event() to pm_wakeup_dev_event(), as it allows
us to specify the "hard" in-parameter, which needs to be set for s2idle.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20250306115021.797426-1-ulf.hansson@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/input/misc/hisi_powerkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/hisi_powerkey.c b/drivers/input/misc/hisi_powerkey.c index d3c293a95d32..d315017324d9 100644 --- a/drivers/input/misc/hisi_powerkey.c +++ b/drivers/input/misc/hisi_powerkey.c @@ -30,7 +30,7 @@ static irqreturn_t hi65xx_power_press_isr(int irq, void *q) { struct input_dev *input = q; - pm_wakeup_event(input->dev.parent, MAX_HELD_TIME); + pm_wakeup_dev_event(input->dev.parent, MAX_HELD_TIME, true); input_report_key(input, KEY_POWER, 1); input_sync(input); |