Re: [PATCH v2] HID: hyperv: Add the support of hibernation

From: Jiri Kosina
Date: Thu Nov 21 2019 - 09:34:18 EST


On Tue, 19 Nov 2019, Dexuan Cui wrote:

> 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@xxxxxxxxxxxxx>
> Acked-by: Jiri Kosina <jkosina@xxxxxxx>

My Ack still holds for v2. Sasha, this is going to be merged through your
tree, right?

Thanks,

--
Jiri Kosina
SUSE Labs