]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: input: avoid polling stylus battery on Chromebook Pompom
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 23 Feb 2024 23:16:12 +0000 (15:16 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:07:36 +0000 (13:07 +0200)
commit0f09e89e667ee71e6d7c9b124555aeb7f1fbfc16
tree7c4e2ffafa1cd8332befc2e6a3c85d9812a34d36
parent30930f0f4674e4aa53d60a04e7185b854c61feeb
HID: input: avoid polling stylus battery on Chromebook Pompom

[ Upstream commit 9a5b1521e2d0d7ace70c6e5eed073babcec91409 ]

Internal touchscreen on Trogdor Pompom (AKA Dynabook Chromebook C1)
supports USI stylus. Unfortunately the HID descriptor for the stylus
interface does not contain "Stylus" physical collection, which makes
the kernel to try and pull battery information, resulting in errors.

Apply HID_BATTERY_QUIRK_AVOID_QUERY to the device.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-ids.h
drivers/hid/hid-input.c