]> www.infradead.org Git - linux.git/commit
HID: input: do not query XP-PEN Deco LW battery
authorJosé Expósito <jose.exposito89@gmail.com>
Sat, 29 Oct 2022 16:12:39 +0000 (18:12 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 4 Nov 2022 14:53:25 +0000 (15:53 +0100)
commit037c1aaeb96fe5f778026f4c1ef28b26cf600bfa
tree48305f1b1a6dc98eadf9ee04988873ef419f515c
parent334fe5d3a99aea2e92b934b4c58fffee9b056c5d
HID: input: do not query XP-PEN Deco LW battery

The XP-PEN Deco LW drawing tablet can be connected by USB cable or using
a USB Bluetooth dongle. When it is connected using the dongle, there
might be a small delay until the tablet is paired with the dongle.

Fetching the device battery during this delay results in random battery
percentage values.

Add a quirk to avoid actively querying the battery percentage and wait
for the device to report it on its own.

Reported-by: Mia Kanashi <chad@redpilled.dev>
Tested-by: Mia Kanashi <chad@redpilled.dev>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c