Skip to content

Commit e02b876

Browse files
alexVinarskisJiri Kosina
authored andcommitted
HID: i2c-hid: introduce qtec vendor, enable re-power-on quirk
This solves keyboard not working until suspend&resume issue on Dell XPS 9345 13" (codenamed 'tributo'). Signed-off-by: Aleksandrs Vinarskis <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent e610802 commit e02b876

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

drivers/hid/hid-ids.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,8 @@
10891089
#define USB_VENDOR_ID_PRODIGE 0x05af
10901090
#define USB_DEVICE_ID_PRODIGE_CORDLESS 0x3062
10911091

1092+
#define I2C_VENDOR_ID_QTEC 0x6243
1093+
10921094
#define USB_VENDOR_ID_QUANTA 0x0408
10931095
#define USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH 0x3000
10941096
#define USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3001 0x3001

drivers/hid/i2c-hid/i2c-hid-core.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ static const struct i2c_hid_quirks {
136136
I2C_HID_QUIRK_BAD_INPUT_SIZE },
137137
{ I2C_VENDOR_ID_CIRQUE, I2C_PRODUCT_ID_CIRQUE_1063,
138138
I2C_HID_QUIRK_NO_SLEEP_ON_SUSPEND },
139+
/*
140+
* Without additional power on command, at least some QTEC devices send garbage
141+
*/
142+
{ I2C_VENDOR_ID_QTEC, HID_ANY_ID,
143+
I2C_HID_QUIRK_RE_POWER_ON },
139144
/*
140145
* Sending the wakeup after reset actually break ELAN touchscreen controller
141146
*/

0 commit comments

Comments
 (0)