Skip to content

Commit

Permalink
[DellEMC] S52xx fix SFP reset in 1.0 API (sonic-net#4858)
Browse files Browse the repository at this point in the history
Issue: Port with AOC cable does not come up when "sfputil reset <port_name>" is executed.

Modified the incorrect mask used in reset API to resolve the issue.
  • Loading branch information
aravindmani-1 authored and pjaipakdee19 committed Jul 7, 2020
1 parent 641d1ca commit 92cd2c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions device/dell/x86_64-dellemc_s5232f_c3538-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def set_low_power_mode(self, port_num, lpmode):
if (reg_value == "" ):
return False

# Mask off 4th bit for presence
# Mask off 6th bit for lpmode
mask = (1 << 6)

# LPMode is active high; set or clear the bit accordingly
Expand Down Expand Up @@ -224,7 +224,7 @@ def reset(self, port_num):
return False

# Mask off 4th bit for presence
mask = (1 << 6)
mask = (1 << 4)

# ResetL is active low
reg_value = reg_value & ~mask
Expand Down
4 changes: 2 additions & 2 deletions device/dell/x86_64-dellemc_s5248f_c3538-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def set_low_power_mode(self, port_num, lpmode):
if (reg_value == "" ):
return False

# Mask off 4th bit for presence
# Mask off 6th bit for lpmode
mask = (1 << 6)

# LPMode is active high; set or clear the bit accordingly
Expand Down Expand Up @@ -283,7 +283,7 @@ def reset(self, port_num):
return False

# Mask off 4th bit for presence
mask = (1 << 6)
mask = (1 << 4)

# ResetL is active low
reg_value = reg_value & ~mask
Expand Down

0 comments on commit 92cd2c7

Please sign in to comment.