Home
last modified time | relevance | path

Searched hist:d05867c0 (Results 1 – 1 of 1) sorted by relevance

/openbmc/dbus-sensors/src/
H A DFanMain.cppd05867c0 Fri Feb 26 18:10:34 CST 2021 Zhikui Ren <zhikui.ren@intel.com> Regression fix: use pwm number from configuration

pwm number is specified in fan sensor configuration
Use this number to construct pwm fs path that is used
to create pwm sensor. No pwm sensor is created if pwm
field is not specified in configuration.

This fixes the regression introduced in the below CL, which
incorrectly assume pwm* and fan*_input always use the same
index number.

commit 77b3add2db57918b3f425ca6e147e9505563b867
Author: Yong Zhao <yozhao@google.com>
Date: Sat Jan 9 04:25:18 2021 +0000

Fan: Optimize the pwm sensor creation


Tested:
pwm sensors are successfully created and mapped with the
following configuration:
(note: number in configuration is zero based)
{
"Name": "System Fan connector 7",
"Pwm": 12,
"Tachs": [
6
],
"Type": "IntelFanConnector"
},

ipmitool sensor output
Pwm 13 | 49.784 | unspecified | ok | na | na | na | na | na | na
Fan 7 | 12382.000 | RPM | ok | na | 1722.000 | 1968.000 | na | na | na

Signed-off-by: Zhikui Ren <zhikui.ren@intel.com>
Signed-off-by: Yong Zhao <yozhao@google.com>
Change-Id: Ie5b44317285378a3e59951deeacd35108c71500d