commit | 2d56d931265d0b6334c34d2927ac06194722891f | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Wed Nov 20 11:17:34 2024 -0600 |
committer | Matt Spinler <spinler@us.ibm.com> | Wed Nov 20 11:17:34 2024 -0600 |
tree | 843fadd3491db98de343d9a4f74d2474d1b0c868 | |
parent | 30cab6296637819aa95d5c64f67eb355b777dde3 [diff] |
fan_speed: Always write target prop to sysfs Leave it up to the fan control application on when to write the fan target value to the hardware and just always do it instead of throwing away the write if the previous property value was the same. This protects against the case when the fan control device resets itself, such as due to an internal watchdog failure, and sets its registers to a default that doesn't match sysfs or D-Bus. Now if fan control writes the target property again, even if it is the same, it will restore the actual value to what is desired. Tested: 1. Write directly to sysfs fan*_target to change the value from what is on D-Bus. 2. Use busctl set-property to set the Target property to the same value it already is. 3. Ensure the fan*_target file changes back to the value. Change-Id: Ib71567e08118f1367610ec311a4b990a4e5019c9 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.