Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit abe6c3b0 authored by Emiliano Ingrassia's avatar Emiliano Ingrassia Committed by Guenter Roeck
Browse files

hwmon: (sht3x) wait predefined limits loading complete before access



An sht3x sensor include limits register which contains temperature
and humidity limit values. After a reset, pre-defined values are loaded
into that register. During the probe function, the driver reads the
limits register. However, if the reads are made too early, and the bus
is clocked at high frequencies (e.g. 100 kHz or more), the loading could be
not completed and the sensor returns a NACK which causes the probe to fail.
A delay of at least 500 us before the first read solves this issue.

Signed-off-by: default avatarEmiliano Ingrassia <ingrassia@epigenesys.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent b0076406
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