Skip to content

Commit 02e0fad

Browse files
roylee123lguohan
authored andcommitted
[Platform] Accton as7712 32x support oom (#1327)
* Update sonic-platform-modules-accton to lastest Signed-off-by: roylee123 <[email protected]> * [platform] accton as7712_32x supports OOM SFP eerpom driver. Signed-off-by: roylee123 <[email protected]> * [platform] update for as7712-32x to remove local optoe.c file and Makefile. Signed-off-by: roy_lee <[email protected]>
1 parent d844acc commit 02e0fad

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

device/accton/x86_64-accton_as7712_32x-r0/plugins/sfputil.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class SfpUtil(SfpUtilBase):
5353
_qsfp_ports = range(0, ports_in_block + 1)
5454

5555
def __init__(self):
56-
eeprom_path = '/sys/bus/i2c/devices/{0}-0050/sfp_eeprom'
56+
eeprom_path = '/sys/bus/i2c/devices/{0}-0050/eeprom'
5757
for x in range(0, self._port_end + 1):
5858
port_eeprom_path = eeprom_path.format(self.port_to_i2c_mapping[x+1])
5959
self._port_to_eeprom_mapping[x] = port_eeprom_path
@@ -64,9 +64,9 @@ def reset(self, port_num):
6464
if port_num < self._port_start or port_num > self._port_end:
6565
return False
6666

67-
path = "/sys/bus/i2c/devices/{0}-0050/sfp_port_reset"
68-
port_ps = path.format(self.port_to_i2c_mapping[port_num+1])
69-
67+
path = "/sys/bus/i2c/devices/4-0060/module_reset_{0}"
68+
port_ps = path.format(port_num+1)
69+
7070
try:
7171
reg_file = open(port_ps, 'w')
7272
except IOError as e:
@@ -93,8 +93,8 @@ def get_presence(self, port_num):
9393
if port_num < self._port_start or port_num > self._port_end:
9494
return False
9595

96-
path = "/sys/bus/i2c/devices/{0}-0050/sfp_is_present"
97-
port_ps = path.format(self.port_to_i2c_mapping[port_num+1])
96+
path = "/sys/bus/i2c/devices/4-0060/module_present_{0}"
97+
port_ps = path.format(port_num+1)
9898

9999

100100
try:

0 commit comments

Comments
 (0)