[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:
Ikki Zhu 2023-07-31 00:42:14 +08:00 committed by Ying Xie
parent 1c0f05707f
commit d993630ab6

View File

@ -30,6 +30,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