[PATCH 0/3] HID: i2c-hid: Probe and wake device with HID descriptor fetch
From: Kenny Levinsen
Date: Mon Apr 15 2024 - 13:09:06 EST
This is in response to
https://lore.kernel.org/all/Zh0qKeI-YPDE-NVT@xxxxxxxxxxxxxxxxxxxx/
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?