[E1031] fix pca9548 initializes failed occasionally (#15712) (#15994)

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.

Co-authored-by: Ikki Zhu <79439153+qnos@users.noreply.github.com>
This commit is contained in:
mssonicbld 2023-08-11 04:33:37 +08:00 committed by GitHub
parent d351e05f82
commit 642358c474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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