summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon%/70-hwmon.rules
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2018-04-25 11:26:08 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-05-02 16:56:54 +0000
commit0bccf766b125fe06beba3c8697b05cfac41f53b3 (patch)
treec48fd6e4af2ac0fdf9cf8838ccb14a4a24d16536 /meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon%/70-hwmon.rules
parenta521e1375300f9d71b6d4e3e2bdbcdf014baaeaa (diff)
downloadtalos-openbmc-0bccf766b125fe06beba3c8697b05cfac41f53b3.tar.gz
talos-openbmc-0bccf766b125fe06beba3c8697b05cfac41f53b3.zip
wspoon: Start hwmon differently for the MAX31785
Add a new udev rule to start the phosphor-hwmon instance for the MAX31785 fan controller differently than other hwmon devices. Also introduce different hwmon config files for air and water cooled systems where the water cooled system doesn't use fan 1. The new udev rule starts a service that will check the cooling type and then link in the appropriate config file before starting the actual phosphor-hwmon service. Note that this phosphor-hwmon service is still stopped the same as any other phosphor-hwmon service. Tested: Test that phosphor-hwmon is started using the correct config files on air and water cooled systems. Change-Id: Ia93d97df024e7b6bff5eb379ddea4730fe34b55b Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon%/70-hwmon.rules')
-rwxr-xr-xmeta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon%/70-hwmon.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon%/70-hwmon.rules b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon%/70-hwmon.rules
new file mode 100755
index 000000000..548b219e7
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon%/70-hwmon.rules
@@ -0,0 +1,2 @@
+SUBSYSTEM=="hwmon", ACTION=="add", ENV{OF_NAME}!="max31785", RUN="/usr/bin/start_hwmon.sh start %p %E{OF_FULLNAME}"
+SUBSYSTEM=="hwmon", ACTION=="remove", RUN="/usr/bin/start_hwmon.sh stop %p %E{OF_FULLNAME}"
OpenPOWER on IntegriCloud