mbox series

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

Message ID 20240415170517.18780-1-kl@kl.wtf
Headers show
Series HID: i2c-hid: Probe and wake device with HID descriptor fetch | expand

Message

Kenny Levinsen April 15, 2024, 5:04 p.m. UTC
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?