]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf720de3146da8d7aab2428a0635f1aa10e1c307
tree04b36868d2aa904b12774e3330a79e656f314991
parentf8ba5a592f31e50eea47d65806996856d2272a1e
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