Home
last modified time | relevance | path

Searched hist:"9 c47bd7e" (Results 1 – 1 of 1) sorted by relevance

/openbmc/dbus-sensors/src/
H A DFanMain.cpp9c47bd7e Fri Aug 26 20:02:09 CDT 2022 Justin Ledford <justinledford@google.com> fansensor: enable fan sensors through fanN_enable sysfs if available

The hwmon sysfs standard defines a fanN_enable file to enable or
disable the sensors[0]. This change will attempt to enable the sensors
with this enable file if they are found.

Tested:
with max31790 and recent patch[1] and saw that fanN_enable files
were 0 before fansensor started, and 1 after fansensor started, with the
appropriate entity-manager config.

[0]: https://www.kernel.org/doc/html/latest/hwmon/sysfs-interface.html#fans
[1]: https://patchwork.kernel.org/project/linux-hwmon/patch/20220829195930.2521755-1-justinledford@google.com/

Signed-off-by: Justin Ledford <justinledford@google.com>
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Ic56a6528d3fa468d54c03c674540179d4a56036b