Skip to content
Commit 7d6f065d authored by Kenny Levinsen's avatar Kenny Levinsen Committed by Jiri Kosina
Browse files

HID: i2c-hid: Use address probe to wake on resume



Certain devices, both from STM and Weida Tech, need to be woken up after
having entered a deeper sleep state. The relevant places to wake up such
device is during our initial HID probe, and after resuming.

A retry for power commands was previously added to i2c_hid_set_power to
wake up Weida Tech devices, but lacked sufficient sleep for STM devices.
Replace the power command retry with the same address probe we using
during our initial HID probe.

Signed-off-by: default avatarKenny Levinsen <kl@kl.wtf>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent ab5ec06a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment