summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2017-03-24 11:55:07 +1030
committerPatrick Williams <patrick@stwcx.xyz>2017-03-24 18:49:22 +0000
commit8346f544e57faf03ace5c205f65213e495a6038e (patch)
tree752bddacd9b9ae678517181000234ad4554a75c2
parent0506dab50f1f78d93e7dca85d04dc246cdacfd60 (diff)
downloadtalos-openbmc-8346f544e57faf03ace5c205f65213e495a6038e.tar.gz
talos-openbmc-8346f544e57faf03ace5c205f65213e495a6038e.zip
ucd_disable_vcs: Don't wait for bound device link to appear
The driver is bound at boot, so if the driver isn't bound then it won't be in the future, unless explicitly bound from userspace. A previous commit (8ca6161774d, "meta-witherspoon: vcs-control: Add retries and journal entries") introduced retries for both unbind/bind operations of the UCD9000 driver for the UCD90160. Don't wait for a symlink to appear if it isn't present. Change-Id: I2e06d48fb7ae71f8af01be5a9548fc3d9d0a4d8a Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
-rw-r--r--meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/ucd_disable_vcs.sh10
1 files changed, 1 insertions, 9 deletions
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/ucd_disable_vcs.sh b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/ucd_disable_vcs.sh
index 49205cca2..b52a68bb8 100644
--- a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/ucd_disable_vcs.sh
+++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/ucd_disable_vcs.sh
@@ -11,15 +11,7 @@ ucd_retries=5
ucdpath="/sys/bus/i2c/drivers/ucd9000"
if [ -e $ucdpath ]
then
- i=0
- until [ $i -ge $ucd_retries ] || [ ! -z $ucd ]; do
- ucd=`ls $ucdpath | grep 64`
- if [ $i -ge "1" ]; then
- echo "Unable to find UCD driver. Retry number $i"
- sleep 1
- fi
- i=$((i+1))
- done
+ ucd=`ls $ucdpath | grep 64`
echo $ucd > $ucdpath/unbind
fi
OpenPOWER on IntegriCloud