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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?






[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux