HID: multitouch: Disable event reporting on suspend on the Asus T101HA touchpad
authorHans de Goede <hdegoede@redhat.com>
Wed, 5 May 2021 21:39:32 +0000 (23:39 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 27 May 2021 13:40:34 +0000 (15:40 +0200)
commit31a4cf1d223dc6144d2e7c679cc3a98f84a1607b
tree876145ac5596b5c9141e6a98fc9e0278e8d57b78
parente62b91cd8a8d4a18955802b852cac86cd72f79b1
HID: multitouch: Disable event reporting on suspend on the Asus T101HA touchpad

The Asus T101HA has a problem with spurious wakeups when the lid is
closed, this is caused by the screen sitting so close to the touchpad
that the touchpad ends up reporting touch events, causing these wakeups.

Add a quirk which disables event reporting on suspend when set, and
enable this quirk for the Asus T101HA touchpad fixing the spurious
wakeups, while still allowing the device to be woken by pressing a
key on the keyboard (which is part of the same USB device).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c