Skip to content

Commit d1a2e17

Browse files
jostar-yangtiger_fu
authored andcommitted
[sonic_xcvr]Enhance to support QSFP port_id=0xC for access eeprom
Signed-off-by: jostar-yang <[email protected]>
1 parent e4db3d6 commit d1a2e17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sonic_platform_base/sonic_xcvr/xcvr_api_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def create_xcvr_api(self):
9696
mem_map = Sff8636MemMap(codes)
9797
xcvr_eeprom = XcvrEeprom(self.reader, self.writer, mem_map)
9898
api = Sff8636Api(xcvr_eeprom)
99-
# QSFP+
100-
elif id == 0x0D:
99+
# QSFP+ or QSFP
100+
elif id == 0x0D or id == 0x0C:
101101
revision_compliance = self._get_revision_compliance()
102102
if revision_compliance >= 3:
103103
codes = Sff8636Codes

0 commit comments

Comments
 (0)