wspoon: Start PSEQ monitor after power workarounds
This witherspoon-pseq-monitor-pgood service launches an instance
of witherspoon-pseq-monitor to run during a power on to monitor
for power faults during that sequence. It needs the hwmon driver
for the ucd90160 bound when it starts so that it can find the
path to some sysfs files it needs to access on failures.
However, the power-workarounds@.service was running at about the
same time, and it unbinds that device driver while it runs, so
the pseq-monitor code can't find what it's looking for, as can
be seen by a "Unable to find hwmon directory in device base path"
trace.
The fix is to just wait for the power-workaround service to be
complete before starting this service.
Change-Id: I930f3886145cc50332d997f60c64118afc6721db
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-pseq-monitor-pgood.service b/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-pseq-monitor-pgood.service
index f18efc1..ff6bcd1 100644
--- a/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-pseq-monitor-pgood.service
+++ b/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-pseq-monitor-pgood.service
@@ -2,6 +2,8 @@
Description=Witherspoon Power Sequencer Power-on Monitor
Wants=op-power-start@0.service
After=op-power-start@0.service
+Wants=power-workarounds@0.service
+After=power-workarounds@0.service
Conflicts=obmc-chassis-poweroff@0.target
ConditionPathExists=!/run/openbmc/chassis@0-on