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:
parent
0a3dafc03b
commit
4fa441135a
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user