commit | 24b8b4be970866666988e8993c1f51c317f6b8ef | [log] [tgz] |
---|---|---|
author | Willy Tu <wltu@google.com> | Mon Aug 07 17:49:37 2023 -0700 |
committer | Willy Tu <wltu@google.com> | Tue Aug 08 21:44:28 2023 +0000 |
tree | 257f9085b3dbc11e1e5ef87bc1e71cbb6ae017bd | |
parent | 64b90bfb66797384a7679c19e5a08458044ede9e [diff] |
Add option to override of_node to use devpath Allow us to force phosphor-hwmon to use the devpath to detect even if the of_name exists. Some system may not be setup properly to have the hwmon setup matching what we needed. This allow us to have the flexibility to override some config if we are not able to fix it on the driver side. The linux change in https://github.com/torvalds/linux/commit/2315332efcbe7124252f080e03b57d3d2f1f4771 create the of_node to the device's ancestor instead of having it missing. This forces multiple devices to be linked to the same node. This required a single config to support multiple different type of devices. This change allow us to avoid that if it is not feasible to fix the issue on the driver side. Tested: Override the devices with devpath only and didn't break other devices. ``` meson build -Doverride-with-devpath=nodeA,nodeB ``` with this if the `of_fullname` has a filename ended with nodeA or nodeB, then it will not use the `of_fullname` and use the devpath instead. Change-Id: I76d05f0cf2aa8de3b7efadea8eb513f4708f049b Signed-off-by: Willy Tu <wltu@google.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.