[devices]: Optics fixes in Dell Z9100/Z9264f platforms (#2936)

This commit is contained in:
Sudharsan D.G 2019-05-26 01:06:53 +00:00 committed by Ying Xie
parent fae35536c3
commit fb1f156eb2
2 changed files with 5 additions and 1 deletions

View File

@ -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"

View File

@ -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