summaryrefslogtreecommitdiffstats
path: root/fan_speed.hpp
Commit message (Collapse)AuthorAgeFilesLines
* hwmonio: split IoAccess object outPatrick Venture2018-04-241-1/+2
| | | | | | | | Split out the hwmon io access object from the sysfs namespace into its own. Change-Id: I8d1a45630117d1d503d0d5fa6061163911b695e8 Signed-off-by: Patrick Venture <venture@google.com>
* Read fan target sysfs value on startupMatt Spinler2017-10-241-2/+4
| | | | | | | | | | | | | | | When creating the object that represents the Control.FanSpeed interface for a fan, read the target fan speed out of sysfs and save it in the object so it shows up in D-Bus immediately. Previously the Target property would have a value of zero until another application wrote it, leaving a window where the D-Bus property wouldn't match the underlying sysfs file value. Change-Id: I08b149840c2cf731bc48f89118622fa63222600e Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Only write pwm_enable if it has an env varMatt Spinler2017-10-241-1/+2
| | | | | | | | | | | | | Some device drivers don't need pwmX_enable written, so only do it if an environment variable is present that contains the value to write. The environment variable is specified in the conf file along with the other enviroment variables and would look like: ENABLE_fan1 = "2" Change-Id: I484ada60957cb0d2b133a69b36bf12cbaad948dc Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Use hwmonio for attribute IOBrad Bishop2017-08-311-11/+14
| | | | | | | | | | Moves disparate error handling scenarios from the method doing the IO to the call point. Resolves openbmc/openbmc#2166 Change-Id: I3b6d2e175433dd8b2946ae60381901f2d7ca1798 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Write pwmX_enable for fans that have a fanX_targetMatt Spinler2017-05-111-0/+5
| | | | | | | | | | | | | | | | | | For fans that have a fanX_target hwmon sysfs attribute, write the pwmX_enable on startup to put that fan into RPM mode, which is safe to do because this application requires that the target is written in RPMs. The write will only occur if the pwm_enable file exists. In the future, if fans with a target need to run in pwm mode, this code will need to be updated to convert between RPM and pwm anyway and the pwm_enable value can then be different based on that. Resolves openbmc/openbmc#1584 Change-Id: I4f6f3ac8d6651314367aaf5c51ac176220f1fba6 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Update hwmon fan target sysfs entriesMatthew Barth2017-03-301-0/+59
Override the default FanSpeed.Target set implementation so when a target value is written to the FanSpeed interface it is also updated in the related fan target sysfs file. This sets a particular fan to the given target speed. Resolves openbmc/openbmc#962 Resolves openbmc/phosphor-hwmon#1 Change-Id: I867811737269b3f42d2a0dc15b37782a74f147b8 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
OpenPOWER on IntegriCloud