[E1031] fix pca9548 initializes failed occasionally (#15712)
Why I did it [E1031] fix pca9548 initializes failed occasionally in stress test. When failure happened, ismt i2c bus hang up and need power cycle to recover it. How I did it Add 0.5s delay between setuping and configuring pca9548 i2c mux. How to verify it Reboot stress test at least 100 times without failure.
This commit is contained in:
parent
9b08fe4eb2
commit
b23078b52b
@ -53,6 +53,7 @@ start)
|
|||||||
[ $found -eq 0 ] && echo "cannot find iSMT" && exit 1
|
[ $found -eq 0 ] && echo "cannot find iSMT" && exit 1
|
||||||
|
|
||||||
i2cset -y ${devnum} 0x73 0x10 0x00 0x01 i
|
i2cset -y ${devnum} 0x73 0x10 0x00 0x01 i
|
||||||
|
sleep 0.5
|
||||||
|
|
||||||
# Attach PCA9548 0x73 Channel Extender for CPU Board
|
# Attach PCA9548 0x73 Channel Extender for CPU Board
|
||||||
echo pca9548 0x73 > /sys/bus/i2c/devices/i2c-${devnum}/new_device
|
echo pca9548 0x73 > /sys/bus/i2c/devices/i2c-${devnum}/new_device
|
||||||
|
Loading…
Reference in New Issue
Block a user