• Kenny Levinsen's avatar
    HID: i2c-hid: Use address probe to wake on resume · 7d6f065d
    Kenny Levinsen authored
    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>
    7d6f065d
i2c-hid-core.c 34.2 KB