]> git.baikalelectronics.ru Git - kernel.git/commit
HID: hyperv: Add the support of hibernation
authorDexuan Cui <decui@microsoft.com>
Wed, 20 Nov 2019 07:14:56 +0000 (23:14 -0800)
committerSasha Levin <sashal@kernel.org>
Fri, 22 Nov 2019 01:10:45 +0000 (20:10 -0500)
commit96219e85808850c6f15644a3f70bf7a98a271599
treea8b1784bd720573612cb60dbdd6daa51987e9e94
parenteae92716314926e9b834c2961bea94dce85f18e0
HID: hyperv: Add the support of hibernation

During the suspend process and resume process, if there is any mouse
event, there is a small chance the suspend and the resume process can be
aborted because of mousevsc_on_receive() -> pm_wakeup_hard_event().

This behavior can be avoided by disabling the Hyper-V mouse device as
a wakeup source:

echo disabled > /sys/bus/vmbus/drivers/hid_hyperv/XXX/power/wakeup
(XXX is the device's GUID).

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-hyperv.c