[PATCH 0/3] HID: i2c-hid: Probe and wake device with HID descriptor fetch

Kenny Levinsen posted 3 patches 1 year, 10 months ago
There is a newer version of this series
[PATCH 0/3] HID: i2c-hid: Probe and wake device with HID descriptor fetch
Posted by Kenny Levinsen 1 year, 10 months ago
This is in response to
https://lore.kernel.org/all/Zh0qKeI-YPDE-NVT@hovoldconsulting.com/

Instead of extending the existing smbus probe to include a retry loop,
this patch takes the same approach as i2c_hid_set_power() by retrying on
EREMOTEIO.

This maintains the "silent" error in case no device is present without
having to send any dummy commands. Tested with a disconnected touchpad
on a Dell XPS 13.

I left out the particular sleep. If one is needed, it should also be
added to i2c_hid_set_power() which is where we'd wake the device after
resuming from suspend.

Lukasz and Radoslaw, can you please test if this still does the trick?