Add cfam reset and FSI scans to the SPI mux service
Setting the SPI mux first requires FSI to be scanned, which requires
the CFAMs to be reset. Then, once the SPI mux is set, in order to probe
the SPI controllers, FSI must be scanned once again. Add all of this to
the service which sets the SPI mux.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Change-Id: I2d26b9810f82f256996c10ee72e52674c749163e
diff --git a/set-spi-mux.service.in b/set-spi-mux.service.in
index 16004d2..7c47717 100644
--- a/set-spi-mux.service.in
+++ b/set-spi-mux.service.in
@@ -3,7 +3,10 @@
ConditionPathExists=!/run/openbmc/chassis@0-on
[Service]
+ExecStartPre=@bindir@/openpower-proc-control cfamReset
+ExecStartPre=@bindir@/openpower-proc-control scanFSI
ExecStart=@bindir@/openpower-proc-control setSPIMux
+ExecStartPost=@bindir@/openpower-proc-control scanFSI
SyslogIdentifier=openpower-proc-control
Type=oneshot
RemainAfterExit=yes