Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions sonic_platform_base/sonic_xcvr/api/public/c_cmis.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,7 @@ def set_laser_freq(self, freq):
assert channel_number % 3 == 0
if channel_number > hi_ch_num or channel_number < low_ch_num:
raise ValueError('Provisioned frequency out of range. Max Freq: 196100; Min Freq: 191300 GHz.')
self.set_lpmode(True)
time.sleep(5)
status = self.xcvr_eeprom.write(consts.LASER_CONFIG_CHANNEL, channel_number)
time.sleep(1)
self.set_lpmode(False)
time.sleep(1)
return status

def set_tx_power(self, tx_power):
Expand Down
10 changes: 5 additions & 5 deletions sonic_platform_base/sonic_xcvr/mem_maps/public/cmis.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def __init__(self, codes):
),

RegGroupField(consts.APPLS_ADVT_FIELD_PAGE01,
*(NumberRegField("%s_%d" % (consts.MEDIA_LANE_ASSIGNMENT_OPTION, app), self.getaddr(0x1, 176 + (app - 1)),
format="B", size=1) for app in range(1, 16)),

*(CodeRegField("%s_%d" % (consts.HOST_ELECTRICAL_INTERFACE, app), self.getaddr(0x1, 223 + 4 * (app - 9)),
self.codes.HOST_ELECTRICAL_INTERFACE) for app in range(9, 16)),

Expand All @@ -149,11 +152,8 @@ def __init__(self, codes):
*(RegBitField("Bit%d" % (bit), bit) for bit in range (4, 8))
) for lane in range(9, 16)),

*(NumberRegField("%s_%d" % (consts.HOST_LANE_ASSIGNMENT_OPTION, app), self.getaddr(0x1, 226 + 4 * (app - 1)),
format="B", size=1) for app in range(9, 16)),

*(NumberRegField("%s_%d" % (consts.MEDIA_LANE_ASSIGNMENT_OPTION, app), self.getaddr(0x1, 176 + (app - 1)),
format="B", size=1) for app in range(1, 16))
*(NumberRegField("%s_%d" % (consts.HOST_LANE_ASSIGNMENT_OPTION, app), self.getaddr(0x1, 226 + 4 * (app - 9)),
format="B", size=1) for app in range(9, 16))
)
)

Expand Down