]> git.baikalelectronics.ru Git - kernel.git/commit
Input: hyper-v - fix wakeup from suspend-to-idle
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 15 Nov 2018 19:05:10 +0000 (11:05 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 15 Nov 2018 19:05:53 +0000 (11:05 -0800)
commit52a4c04773454917fab68e0a2e7de2258392dd4a
tree3ad8d3af513b3c0ddf963a458d0873ccaef903ce
parentd9fde9980de35252d97ed1b0556c5110b8bab142
Input: hyper-v - fix wakeup from suspend-to-idle

It makes little sense but still possible to put Hyper-V guests into
suspend-to-idle state. To wake them up two wakeup sources were registered
in the past: hyperv-keyboard and hid-hyperv. However, since
commit 1ae3fa4eb31e ("ACPI / sleep: Ignore spurious SCI wakeups from
suspend-to-idle") pm_wakeup_event() from these devices is ignored. Switch
to pm_wakeup_hard_event() API as these devices are actually the only
possible way to wakeup Hyper-V guests.

Fixes: 1ae3fa4eb31e (ACPI / sleep: Ignore spurious SCI wakeups from suspend-to-idle)
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: K. Y. Srinivasan <kys@microsoft.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/hid/hid-hyperv.c
drivers/input/serio/hyperv-keyboard.c