Skip to content

Commit

Permalink
[devices]: Optics fixes in Dell Z9100/Z9264f platforms (#2936)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudharsan D.G authored and lguohan committed May 26, 2019
1 parent ccf91c3 commit 6d62249
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ if [[ "$1" == "init" ]]; then
#Copy led_proc_init.soc
init_switch_port_led

value=0x0
echo $value > /sys/class/i2c-adapter/i2c-14/14-003e/qsfp_lpmode
echo $value > /sys/class/i2c-adapter/i2c-15/15-003e/qsfp_lpmode
echo $value > /sys/class/i2c-adapter/i2c-16/16-003e/qsfp_lpmode

elif [[ "$1" == "deinit" ]]; then
xcvr_presence_interrupts "disable"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ switch_board_modsel() {
do
port_addr=$(( 16384 + ((i - 1) * 16)))
hex=$( printf "0x%x" $port_addr )
python /usr/bin/pcisysfs.py --set --offset $hex --val 0x41 --res $resource > /dev/null 2>&1
python /usr/bin/pcisysfs.py --set --offset $hex --val 0x10 --res $resource > /dev/null 2>&1
done
}
init_devnum
Expand Down

0 comments on commit 6d62249

Please sign in to comment.