]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ccc27c8675d086f3f2126752feb271b72d5b4b0
tree8608937eb05d58fb5954456332f587e869a8413c
parentfb5b33df3580dbac0b628894b770e4794979f513
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