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

HID: i2c-hid: Retry address probe after delay

Some STM microcontrollers need 400µs after rising clock edge in order to
come out of their deep sleep state. This in turn means that our address
probe will fail as the device is not ready to service it.

Retry the probe once after a delay to see if the device came alive,
otherwise treat the device as missing.

Link: https://lore.kernel.org/all/20240405102436.3479210-1-lma@chromium.org/#t


Co-developed-by: default avatarRadoslaw Biernacki <rad@chromium.org>
Co-developed-by: default avatarLukasz Majczak <lma@chromium.org>
Signed-off-by: default avatarKenny Levinsen <kl@kl.wtf>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent 3e78a6c0
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