[Seastone] Enhancement fix for PR12200 syseeprom issue (#13344) (#13433)

Why I did it
[Seastone] Enhancement fix for PR12200 syseeprom issue.

How I did it
Enhance the fix through replace the hardcoded devnum to bash variable

How to verify it
show platform syseeprom or decode-syseeprom

Co-authored-by: Ikki Zhu <79439153+qnos@users.noreply.github.com>
This commit is contained in:
mssonicbld 2023-01-21 02:16:56 +08:00 committed by GitHub
parent 0a3dafc03b
commit 4fa441135a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,11 +147,11 @@ start)
sleep 0.1
done
# Set pca9548 idle_state
echo -2 > /sys/bus/i2c/devices/i2c-${devnum}/0-0071/idle_state
echo -2 > /sys/bus/i2c/devices/i2c-${devnum}/0-0073/idle_state
echo -2 > /sys/bus/i2c/devices/i2c-${devnum}/0-0077/idle_state
sleep 0.1
# Set pca9548 idle_state
echo -2 > /sys/bus/i2c/devices/i2c-${devnum}/${devnum}-0071/idle_state
echo -2 > /sys/bus/i2c/devices/i2c-${devnum}/${devnum}-0073/idle_state
echo -2 > /sys/bus/i2c/devices/i2c-${devnum}/${devnum}-0077/idle_state
sleep 0.1
bus_en=8
cfg_r=`i2cget -y -f 8 0x60 0xD1`