summaryrefslogtreecommitdiff
path: root/meta-ibm
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2021-10-04 22:24:32 +0300
committerMatt Spinler <spinler@us.ibm.com>2021-10-04 22:24:32 +0300
commit8cda93935c03b7d1b053b60524fbc3150d2558d8 (patch)
tree3be88283e2e88e84b59e5710266fe82b9cf5ef41 /meta-ibm
parent31ecbfbce51fd02e6ae1fd31cdf04e7d0bebee0d (diff)
downloadopenbmc-8cda93935c03b7d1b053b60524fbc3150d2558d8.tar.xz
wspoon: Add cooling-type dep to fan control
With commit c184a0f08, the phosphor-hwmon instance for the max31785 fan control device no longer waited for the cooling-type application to finish before starting. Since the fan control service depends on the phosphor-hwmon instance, it is now starting earlier than before, before cooling-type, which was causing a crash. To fix this, add the cooling-type dependency into the witherspoon fan control service file. Tested: Can see in the journal that fan control now starts after phosphor-cooling-type, and it doesn't crash on a genesis reboot when the inventory had previously been cleared. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I4bf9d8eb7f39acea71b790a61edfe1e8c4dae788
Diffstat (limited to 'meta-ibm')
-rw-r--r--meta-ibm/recipes-phosphor/fans/phosphor-fan/witherspoon/phosphor-fan-control@.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-ibm/recipes-phosphor/fans/phosphor-fan/witherspoon/phosphor-fan-control@.service b/meta-ibm/recipes-phosphor/fans/phosphor-fan/witherspoon/phosphor-fan-control@.service
index 5e555a275..95c34d3dc 100644
--- a/meta-ibm/recipes-phosphor/fans/phosphor-fan/witherspoon/phosphor-fan-control@.service
+++ b/meta-ibm/recipes-phosphor/fans/phosphor-fan/witherspoon/phosphor-fan-control@.service
@@ -2,6 +2,8 @@
Description=Phosphor Fan Control Daemon
Requires=xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x40{ADDR}-max31785\x4052.service
After=xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x40{ADDR}-max31785\x4052.service
+Requires=phosphor-cooling-type@%i.service
+After=phosphor-cooling-type@%i.service
[Service]
Restart=on-failure