[DellEMC] S52xx fix SFP reset in 1.0 API (#4858)

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.
This commit is contained in:
Aravind Mani 2020-06-28 00:32:53 +05:30 committed by Abhishek Dosi
parent 5df5015835
commit 2f97faaf7c
2 changed files with 4 additions and 4 deletions

View File

@ -192,7 +192,7 @@ class SfpUtil(SfpUtilBase):
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
@ -223,7 +223,7 @@ class SfpUtil(SfpUtilBase):
return False
# Mask off 4th bit for presence
mask = (1 << 6)
mask = (1 << 4)
# ResetL is active low
reg_value = reg_value & ~mask

View File

@ -221,7 +221,7 @@ class SfpUtil(SfpUtilBase):
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
@ -252,7 +252,7 @@ class SfpUtil(SfpUtilBase):
return False
# Mask off 4th bit for presence
mask = (1 << 6)
mask = (1 << 4)
# ResetL is active low
reg_value = reg_value & ~mask