Skip to contentSkip to conversation

HID: i2c-hid: Add a quirk for a Cirque I2C device.

PATCH Applied Vadim Klishko 2 participants 2 messages Jul 28 – Aug 25 HID

lore
Share & tools
lore
#0 lore raw

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
index 1059922baaac..496589277bd5 100644
@@ -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
index 3adb16366e93..63004bcbfa71 100644
@@ -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
maintainer Applied
#1 lore raw
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_RESET fixes 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]>