diff options
author | Matt Spinler <spinler@us.ibm.com> | 2017-03-08 13:53:51 -0600 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-03-16 20:00:47 +0000 |
commit | cf92a506586cb25e57ec06aaeacbc223832d5e28 (patch) | |
tree | 8d5e8b2266a1e1dc10014aaca79818e61ca1001c /meta-phosphor/common/recipes-phosphor/chassis/obmc-fsi/fsi-disable.service | |
parent | 1f09d4ae2aa35b469578ff284c98579d23cdac4d (diff) | |
download | talos-openbmc-cf92a506586cb25e57ec06aaeacbc223832d5e28.tar.gz talos-openbmc-cf92a506586cb25e57ec06aaeacbc223832d5e28.zip |
Add FSI enable/disable services for cronus use
Start fsi-disable.service to unbind the FSI Driver.
Start fsi-enable.service to bind it again and rescan.
Also added a fsi-bind@.service so we can ensure the
driver is bound each power on.
Change-Id: I5fa62b44994aea3bb645e755187f29e720bf3bce
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/chassis/obmc-fsi/fsi-disable.service')
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/chassis/obmc-fsi/fsi-disable.service | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/chassis/obmc-fsi/fsi-disable.service b/meta-phosphor/common/recipes-phosphor/chassis/obmc-fsi/fsi-disable.service new file mode 100644 index 000000000..a58af0445 --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/chassis/obmc-fsi/fsi-disable.service @@ -0,0 +1,8 @@ +[Unit] +Description=Disable FSI +Conflicts=fsi-enable.service + +[Service] +ExecStart=/bin/sh -c "echo fsi-master > /sys/bus/platform/drivers/fsi-master-gpio/unbind" +Type=oneshot +RemainAfterExit=yes |