Skip to content

Commit f317672

Browse files
author
Willy Liu
committed
[ACCTON][AS9947-72XKB] Set the reset of transceivers to disabled in init.py
Signed-off-by: Willy Liu <willy@accton.com>
1 parent 188c35f commit f317672

File tree

1 file changed

+3
-1
lines changed
  • packages/platforms/accton/x86-64/as9947-72xkb/platform-config/r0/src/python/x86_64_accton_as9947_72xkb_r0

1 file changed

+3
-1
lines changed

packages/platforms/accton/x86-64/as9947-72xkb/platform-config/r0/src/python/x86_64_accton_as9947_72xkb_r0/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ def baseconfig(self):
8686
for m in [ 'i2c-ocores', 'fpga', 'sfp', 'fan', 'psu', 'thermal', 'sys', 'leds']:
8787
self.insmod("x86-64-accton-as9947-72xkb-%s" % m)
8888

89+
for port in range(1, 73):
90+
subprocess.call('echo 0 > /sys/bus/platform/devices/as9947_72xkb_sfp/module_reset_%d' % (port), shell=True)
91+
8992
# QSFP
9093
for port in range(1, 49):
9194
self.new_i2c_device('optoe1', 0x50, port)
@@ -96,7 +99,6 @@ def baseconfig(self):
9699
for port in range(73,77):
97100
self.new_i2c_device('optoe2', 0x50, port)
98101

99-
100102
for port in range(1, 77):
101103
subprocess.call('echo port%d > /sys/bus/i2c/devices/%d-0050/port_name' % (port, port), shell=True)
102104

0 commit comments

Comments
 (0)