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>
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 49205cc..b52a68b 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 @@
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