Skip to content

Commit 045d5e6

Browse files
santhosh-ktabdosi
authored andcommitted
[DellEMC] S6000 Disable Low power mode by default (#4592)
1 parent 321b99b commit 045d5e6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

platform/broadcom/sonic-platform-modules-dell/s6000/scripts/s6000_platform.sh

+15
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,20 @@ remove_i2c_devices() {
6060
done
6161
}
6262

63+
# Enable/Disable low power mode on all QSFP ports
64+
switch_board_qsfp_lpmode() {
65+
case $1 in
66+
"enable") value=0xffff
67+
;;
68+
"disable") value=0x0
69+
;;
70+
*) echo "s6000_platform: switch_board_qsfp_lpmode: invalid command $1!"
71+
return
72+
;;
73+
esac
74+
echo $value > /sys/bus/platform/devices/dell-s6000-cpld.0/qsfp_lpmode
75+
}
76+
6377
install_python_api_package() {
6478
device="/usr/share/sonic/device"
6579
platform=$(/usr/local/bin/sonic-cfggen -H -v DEVICE_METADATA.localhost.platform)
@@ -86,6 +100,7 @@ if [[ "$1" == "init" ]]; then
86100
add_i2c_devices
87101

88102
/usr/local/bin/set-fan-speed 15000
103+
switch_board_qsfp_lpmode "disable"
89104
/usr/local/bin/reset-qsfp
90105
elif [[ "$1" == "deinit" ]]; then
91106
remove_i2c_devices

0 commit comments

Comments
 (0)