commit | 901f117733c828aa7519610eb23ce112b9d068a8 | [log] [tgz] |
---|---|---|
author | Kun Yi <kunyi731@gmail.com> | Thu Jun 14 10:23:03 2018 -0700 |
committer | Patrick Venture <venture@google.com> | Wed Jun 27 17:21:27 2018 +0000 |
tree | fa3cce9f5f73761c188b09fe0c532d9994a259e4 | |
parent | 9f51481f3e1d48e5479624fb40f2df279152d453 [diff] |
fan_pwm: Commit fan PWM value regardless of previous target. Failure scenraio: set fan pwm => set fan auto => set fan pwm to the same value. DBus value would stay the same but the actual pwm value is already changed. Fix is to always commit the value to sysfs. Tested: Unit tests pass. Tested on hardware that setting DBus value on DBus always makes a pwm sysfs write. Change-Id: I8e2c22dd514543e10c9302c1adb0403ba6883a91 Signed-off-by: Kun Yi <kunyi731@gmail.com>
Exposes generic hwmon entries as DBus objects. More information can be found at Sensor Architecture
To build this package, do the following steps: 1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make To clean the repository run `./bootstrap.sh clean`.
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 an autoconf configurable prefix (BUSNAME_PREFIX, xyz.openbmc_project by default), ID is a std::hash of the /sys/devices path backing the hwmon class instance, and N is the implemented phosphor-hwmon D-Bus API version.