Skip to content

Commit

Permalink
[Credo][Ycable] Correct the lane mapping in the debugdumpregister fun…
Browse files Browse the repository at this point in the history
…ction for the 50G cable (sonic-net#417)

Signed-off-by: Xinyu <xinyu0123@gmail.com>
  • Loading branch information
xinyulin authored and mssonicbld committed Dec 15, 2023
1 parent 57f63e6 commit f796203
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sonic_y_cable/credo/y_cable_credo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3254,7 +3254,10 @@ def debug_dump_registers(self, option=None):
if api_ver >= 0x18:
result['queue_info'] = self.queue_info()

lanes = [0,1,2,3,12,13,14,15,20,21,22,23]
if '1MS' in result['pn']:
lanes = [0,1,12,13,16,17]
else:
lanes = [0,1,2,3,12,13,14,15,20,21,22,23]

for ln in list(lanes):
data = self.get_serdes_params(ln)
Expand Down

0 comments on commit f796203

Please sign in to comment.