Skip to content

Commit cbd47b5

Browse files
committed
Input: hisi_powerkey - enable system-wakeup for s2idle
JIRA: https://issues.redhat.com/browse/RHEL-101770 Upstream Status: since v6.15 Tested: with the hid-tools test suite and some hardware commit e98960b Author: Ulf Hansson <ulf.hansson@linaro.org> Date: Thu Mar 6 12:50:21 2025 +0100 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> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
1 parent 736896f commit cbd47b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/misc/hisi_powerkey.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static irqreturn_t hi65xx_power_press_isr(int irq, void *q)
3030
{
3131
struct input_dev *input = q;
3232

33-
pm_wakeup_event(input->dev.parent, MAX_HELD_TIME);
33+
pm_wakeup_dev_event(input->dev.parent, MAX_HELD_TIME, true);
3434
input_report_key(input, KEY_POWER, 1);
3535
input_sync(input);
3636

0 commit comments

Comments
 (0)