[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 GitHub
parent 1eb3dfe541
commit 0c3ec0e644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -193,7 +193,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
@ -224,7 +224,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

@ -252,7 +252,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
@ -283,7 +283,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