HID: i2c-hid: Add a quirk for a Cirque I2C device.
PATCH v3 1/1 HID: i2c-hid: Add a quirk for a Cirque I2C device.
Cirque touchpads with PID D0C1 generate an error when probed by the I2C HID driver, resulting in no hidraw device created. Adding I2C_HID_QUIRK_NO_IRQ_AFTER_RESET fixes the issue.
---
v3: Resending as a standalone thread to fix a Patchwork issue. No code changes.
v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/
drivers/hid/hid-ids.h | 1 + drivers/hid/i2c-hid/i2c-hid-core.c | 2 ++ 2 files changed, 3 insertions(+)
drivers/hid/hid-ids.h +1 -0
@@ -334,6 +334,7 @@#define I2C_VENDOR_ID_CIRQUE 0x0488#define I2C_PRODUCT_ID_CIRQUE_1063 0x1063 +#define I2C_PRODUCT_ID_CIRQUE_D0C1 0xD0C1#define USB_VENDOR_ID_CJTOUCH 0x24b8#define USB_DEVICE_ID_CJTOUCH_MULTI_TOUCH_0020 0x0020
drivers/hid/i2c-hid/i2c-hid-core.c +2 -0
@@ -136,6 +136,8 @@ static const struct i2c_hid_quirks { I2C_HID_QUIRK_BAD_INPUT_SIZE }, {I2C_VENDOR_ID_CIRQUE ,I2C_PRODUCT_ID_CIRQUE_1063 , I2C_HID_QUIRK_NO_SLEEP_ON_SUSPEND }, + { I2C_VENDOR_ID_CIRQUE, I2C_PRODUCT_ID_CIRQUE_D0C1, + I2C_HID_QUIRK_NO_IRQ_AFTER_RESET },/* * Without additional power on command, at least some QTEC devices send garbage */
Signature · 1 line
2.34.1
Quoted 3 lines · Vadim Klishko
Cirque touchpads with PID D0C1 generate an error when probed by the I2C HID driver, resulting in no hidraw device created. Adding
I2C_HID_QUIRK_NO_IRQ_AFTER_RESETfixes the issue.
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git (for-7.3/upstream-fixes), thanks!
[1/1] HID: i2c-hid: Add a quirk for a Cirque I2C device.
https://git.kernel.org/hid/hid/c/1c942462c396
Cheers,
Signature · 1 line
Benjamin Tissoires <[email protected]>