diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-02-23 15:16:12 -0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2024-02-27 15:18:01 +0100 |
commit | 9a5b1521e2d0d7ace70c6e5eed073babcec91409 (patch) | |
tree | 0047954a1fca430e284eb1795afe15dc7c736895 /drivers/hid/hid-input.c | |
parent | 4d05105e7c64f1abfd876b4d646eeb929fd577e8 (diff) | |
download | lwn-9a5b1521e2d0d7ace70c6e5eed073babcec91409.tar.gz lwn-9a5b1521e2d0d7ace70c6e5eed073babcec91409.zip |
HID: input: avoid polling stylus battery on Chromebook Pompom
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>
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r-- | drivers/hid/hid-input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index c8b20d44b147..e03d300d2bac 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -411,6 +411,8 @@ static const struct hid_device_id hid_battery_quirks[] = { HID_BATTERY_QUIRK_IGNORE }, { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_ENVY_X360_15_EU0556NG), HID_BATTERY_QUIRK_IGNORE }, + { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_CHROMEBOOK_TROGDOR_POMPOM), + HID_BATTERY_QUIRK_AVOID_QUERY }, {} }; |