commit | 86dcac857accf455384c7037899f8680c2a11e28 | [log] [tgz] |
---|---|---|
author | Brandon Kim <brandonkim@google.com> | Tue Jun 18 17:48:51 2019 -0700 |
committer | Brandon Kim <brandonkim@google.com> | Mon Jun 24 21:31:09 2019 +0000 |
tree | e7efc100e8a02c08efe2a06fde13b4e7c77819c9 | |
parent | 802d94fb92bfdba0adf41d3b8dd7ea647a5133cb [diff] |
sensor: Always add status interface, track fault file with class member Always add the status interface regardless of whether there is a fault file or not and update the functional property accordingly. Added a new sensor class member to track the presence of fault file. Resolves: openbmc/phosphor-hwmon#10 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I4480541691ccfa853d85151965428c564db8ba52
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.