Commit 293c485c authored by Bartłomiej Maryńczak's avatar Bartłomiej Maryńczak Committed by Jiri Kosina
Browse files

HID: i2c-hid: Delayed i2c resume wakeup for 0x0d42 Goodix touchpad



Patch for Goodix 27c6:0d42 touchpads found in Inspiron 5515 laptops.

After resume from suspend, one can communicate with this device just fine.
We can read data from it or request a reset,
but for some reason the interrupt line will not go up
when new events are available.
(it can correctly respond to a reset with an interrupt tho)

The only way I found to wake this device up
is to send anything to it after ~1.5s mark,
for example a simple read request, or power mode change.

In this patch, I simply delay the resume steps with msleep,
this will cause the set_power request to happen after
the ~1.5s barrier causing the device to resume its event interrupts.

Sleep was used rather than delayed_work
to make this workaround as non-invasive as possible.

[jkosina@suse.com: shortlog update]
Signed-off-by: default avatarBartłomiej Maryńczak <marynczakbartlomiej@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent 2934b122
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment