HID: multitouch: Set to high latency mode on suspend.
authorBlaž Hrastnik <blaz@mxxn.io>
Sat, 19 Dec 2020 04:47:41 +0000 (13:47 +0900)
committerJiri Kosina <jkosina@suse.cz>
Tue, 26 Jan 2021 10:09:06 +0000 (11:09 +0100)
commitc7aa374e0000daa89201fc29912b60081b269339
tree8608937eb05d58fb5954456332f587e869a8413c
parent2bbe17ae87938ca44756741ec77e3be76a4a0ea0
HID: multitouch: Set to high latency mode on suspend.

Per Windows Precision Touchpad guidelines:

> The latency mode feature report is sent by the host to a Windows
> Precision Touchpad to indicate when high latency is desirable for
> power savings and, conversely, when normal latency is desired for
> operation.
>
> For USB-connected Windows Precision Touchpads, this enables the device
> to disambiguate between being suspended for inactivity (runtime IDLE)
> and being suspended because the system is entering S3 or Connected
> Standby.

The current implementation would set the latency to normal on device initialization,
but we didn't set the device to high latency on suspend.

Signed-off-by: Blaž Hrastnik <blaz@mxxn.io>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c