Skip to content

Commit 86c3152

Browse files
khfengJiri Kosina
authored andcommitted
HID: i2c-hid: Disable runtime PM for LG touchscreen
LG touchscreen (1fd2:8001) stops working after reboot: [ 4.859153] i2c_hid i2c-SAPS2101:00: i2c_hid_get_input: incomplete report (64/66) [ 4.936070] i2c_hid i2c-SAPS2101:00: i2c_hid_get_input: incomplete report (64/66) [ 9.948224] i2c_hid i2c-SAPS2101:00: failed to reset device. The device in question stops working after receives SLEEP, ON, SLEEP commands in a short period. The scenario is like this: - Once the desktop session closes, it also closed the hid device, so the device gets runtime suspended and receives a SLEEP command. - Before calling shutdown callback, it gets runtime resumed and received an ON command. - In the shutdown callback, it receives another SLEEP command. I failed to find a reliable interval between ON/SLEEP commands that can make it work, so let's simply disable runtime PM for the device. Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 12d43aa commit 86c3152

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@
710710
#define USB_VENDOR_ID_LG 0x1fd2
711711
#define USB_DEVICE_ID_LG_MULTITOUCH 0x0064
712712
#define USB_DEVICE_ID_LG_MELFAS_MT 0x6007
713+
#define I2C_DEVICE_ID_LG_8001 0x8001
713714

714715
#define USB_VENDOR_ID_LOGITECH 0x046d
715716
#define USB_DEVICE_ID_LOGITECH_AUDIOHUB 0x0a0e

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ static const struct i2c_hid_quirks {
177177
I2C_HID_QUIRK_NO_RUNTIME_PM },
178178
{ I2C_VENDOR_ID_RAYDIUM, I2C_PRODUCT_ID_RAYDIUM_4B33,
179179
I2C_HID_QUIRK_DELAY_AFTER_SLEEP },
180+
{ USB_VENDOR_ID_LG, I2C_DEVICE_ID_LG_8001,
181+
I2C_HID_QUIRK_NO_RUNTIME_PM },
180182
{ 0, 0 }
181183
};
182184

0 commit comments

Comments
 (0)