From 909a7e94bba1cb3787a2b62063930c22a71f5582 Mon Sep 17 00:00:00 2001 From: roylee123 Date: Fri, 22 Dec 2017 10:54:30 +0800 Subject: [PATCH 1/3] Update sonic-platform-modules-accton to lastest Signed-off-by: roylee123 --- platform/broadcom/sonic-platform-modules-accton | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/broadcom/sonic-platform-modules-accton b/platform/broadcom/sonic-platform-modules-accton index 7ba26ec403c7..e66b74fcf7a9 160000 --- a/platform/broadcom/sonic-platform-modules-accton +++ b/platform/broadcom/sonic-platform-modules-accton @@ -1 +1 @@ -Subproject commit 7ba26ec403c7f0d0acb958f794311ac3fd1af9a1 +Subproject commit e66b74fcf7a943d8c7c8f241a8221eca65171ced From 4db71483a85621a93cbe9722fdabc06528548545 Mon Sep 17 00:00:00 2001 From: roylee123 Date: Fri, 19 Jan 2018 15:33:44 +0800 Subject: [PATCH 2/3] [platform] accton as7712_32x supports OOM SFP eerpom driver. Signed-off-by: roylee123 --- .../x86_64-accton_as7712_32x-r0/plugins/sfputil.py | 12 ++++++------ platform/broadcom/sonic-platform-modules-accton | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/device/accton/x86_64-accton_as7712_32x-r0/plugins/sfputil.py b/device/accton/x86_64-accton_as7712_32x-r0/plugins/sfputil.py index 2e636292bfa9..fd117ee38867 100644 --- a/device/accton/x86_64-accton_as7712_32x-r0/plugins/sfputil.py +++ b/device/accton/x86_64-accton_as7712_32x-r0/plugins/sfputil.py @@ -53,7 +53,7 @@ class SfpUtil(SfpUtilBase): _qsfp_ports = range(0, ports_in_block + 1) def __init__(self): - eeprom_path = '/sys/bus/i2c/devices/{0}-0050/sfp_eeprom' + eeprom_path = '/sys/bus/i2c/devices/{0}-0050/eeprom' for x in range(0, self._port_end + 1): port_eeprom_path = eeprom_path.format(self.port_to_i2c_mapping[x+1]) self._port_to_eeprom_mapping[x] = port_eeprom_path @@ -64,9 +64,9 @@ def reset(self, port_num): if port_num < self._port_start or port_num > self._port_end: return False - path = "/sys/bus/i2c/devices/{0}-0050/sfp_port_reset" - port_ps = path.format(self.port_to_i2c_mapping[port_num+1]) - + path = "/sys/bus/i2c/devices/4-0060/module_reset_{0}" + port_ps = path.format(port_num+1) + try: reg_file = open(port_ps, 'w') except IOError as e: @@ -93,8 +93,8 @@ def get_presence(self, port_num): if port_num < self._port_start or port_num > self._port_end: return False - path = "/sys/bus/i2c/devices/{0}-0050/sfp_is_present" - port_ps = path.format(self.port_to_i2c_mapping[port_num+1]) + path = "/sys/bus/i2c/devices/4-0060/module_present_{0}" + port_ps = path.format(port_num+1) try: diff --git a/platform/broadcom/sonic-platform-modules-accton b/platform/broadcom/sonic-platform-modules-accton index 3f06d9f5864c..c3c4ae9aeb2a 160000 --- a/platform/broadcom/sonic-platform-modules-accton +++ b/platform/broadcom/sonic-platform-modules-accton @@ -1 +1 @@ -Subproject commit 3f06d9f5864c9daae4b582d60307ccb6d21c6ceb +Subproject commit c3c4ae9aeb2afc62b99c6d45f93ec1a512447a5a From d3c4f8d12dd5bf935a9e1aa90b4b2b50c90b3ad3 Mon Sep 17 00:00:00 2001 From: roy_lee Date: Tue, 13 Feb 2018 10:47:24 +0800 Subject: [PATCH 3/3] [platform] update for as7712-32x to remove local optoe.c file and Makefile. Signed-off-by: roy_lee --- platform/broadcom/sonic-platform-modules-accton | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/broadcom/sonic-platform-modules-accton b/platform/broadcom/sonic-platform-modules-accton index c3c4ae9aeb2a..bb561272116e 160000 --- a/platform/broadcom/sonic-platform-modules-accton +++ b/platform/broadcom/sonic-platform-modules-accton @@ -1 +1 @@ -Subproject commit c3c4ae9aeb2afc62b99c6d45f93ec1a512447a5a +Subproject commit bb561272116e1664d4e6f819e452ac3ec5154484