HID: i2c-hid: Add a small delay after sleep command for Raydium touchpanel
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Fri, 5 Oct 2018 04:46:29 +0000 (12:46 +0800)
committerJiri Kosina <jkosina@suse.cz>
Fri, 26 Oct 2018 15:09:22 +0000 (17:09 +0200)
commit00b790ea545b6ef30221adef6e9c3707e03b82b5
tree04b36868d2aa904b12774e3330a79e656f314991
parentf11274396a538b31bc010f782e05c2ce3f804c13
HID: i2c-hid: Add a small delay after sleep command for Raydium touchpanel

Raydium touchpanel (2386:4B33) sometimes does not work in desktop session
although it works in display manager.

During user logging, the display manager exits, close the HID device,
then the device gets runtime suspended and powered off. The desktop
session begins shortly after, opens the HID device, then the device gets
runtime resumed and powered on.

If the trasition from display manager to desktop sesesion is fast, the
touchpanel cannot switch from powered off to powered on in short
timeframe. So add a small delay to workaround the issue.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ids.h
drivers/hid/i2c-hid/i2c-hid-core.c