linux_old1/drivers/hid/i2c-hid
Kai-Heng Feng 86c31524b2 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>
2018-11-19 16:27:00 +01:00
..
Kconfig HID: i2c-hid: enhance Kconfig 2012-12-05 10:55:03 +01:00
Makefile HID: i2c-hid: override HID descriptors for certain devices 2018-09-29 21:25:59 +02:00
i2c-hid-core.c HID: i2c-hid: Disable runtime PM for LG touchscreen 2018-11-19 16:27:00 +01:00
i2c-hid-dmi-quirks.c Merge branch 'master' into for-4.20/upstream-fixes 2018-11-06 13:57:02 +01:00
i2c-hid.h HID: i2c-hid: override HID descriptors for certain devices 2018-09-29 21:25:59 +02:00