| commit | 5e0b842edb9768512aef246b908a535c3796d149 | [log] [tgz] |
|---|---|---|
| author | Matt Spinler <spinler@us.ibm.com> | Wed Jan 14 15:40:20 2026 -0600 |
| committer | Matt Spinler <spinler@us.ibm.com> | Wed Jan 14 16:30:47 2026 -0600 |
| tree | f4cf5c7dc0ca9ad468e7093fdb12d30bb74f9d8e | |
| parent | 3e6ca8b054242ad789e0ca34509b05f583a0515f [diff] |
Retry reads/writes on the EPROTO errno 71 The code only retries hardware accesses on certain errnos. Add EPROTO, errno 71, to this list. On multi-master buses when there is a lot of activity on both masters at the same time these errors have been seen, and doing a single retry will will succeed. While it is possible there is some possible improvement that could be made in the I2C device driver, there isn't really a reason not to just do a retry here. It could be argued a retry should be done on every failure regardless of the errno, but that is out of the scope of this commit. Tested: With extra traces added to show the retry, a single retry succeeds. Change-Id: Ibfff84171c7a5918cb6598baea6d475c5fe095ef Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Exposes generic hwmon entries as DBus objects. More information can be found at Sensor Architecture
To build this package, do the following steps:
To clean the repository run rm -rf build.
To enable the use of Linux features like cgroups prioritization and udev/systemd control, one instance of phosphor-hwmon is intended to be run per hwmon sysfs class instance.
This requires an algorithm for selecting a stable, well-known D-Bus busname.
The algorithm is <PREFIX>-<ID>.Hwmon<N> where PREFIX is a meson configurable prefix (BUSNAME_PREFIX=xyz.openbmc_project by default), ID is either a std::hash of the /sys/devices path backing the hwmon class instance or provided suffix value from the command line, and N is the implemented phosphor-hwmon D-Bus API version.