mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:24:31 +01:00
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>
This commit is contained in:
parent
a609cb4cc0
commit
e98960bc4d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue