[Accton AS7326]: Add lpmode in sfputil.py#2905
Merged
lguohan merged 1 commit intosonic-net:masterfrom May 18, 2019
Merged
Conversation
Signed-off-by: brandon_chuang <brandon_chuang@CicadaBuildServer.accton.com.tw>
lguohan
approved these changes
May 18, 2019
MichelMoriniaux
pushed a commit
to criteo-forks/sonic-buildimage
that referenced
this pull request
May 28, 2019
Signed-off-by: brandon_chuang <brandon_chuang@CicadaBuildServer.accton.com.tw>
yxieca
pushed a commit
that referenced
this pull request
Oct 5, 2023
…lly (#16532) src/sonic-swss * de7186c6 - (HEAD -> 202205, origin/202205) [202205][CodeQL]: Use dependencies with relevant versions in azp template. (#2905) (13 days ago) [Nazarii Hnydyn] * 106dd9ed - [CodeQL]: Use dependencies with relevant versions in azp template. (#2845) (3 weeks ago) [Nazarii Hnydyn]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CPU: Intel Broadwell-DE XeonD-1518 1.6G 4 Core
MAC: Broadcom Trident3 BCM56873
BMC: None
What I did
Add lpmode in sfputil.py for as7326-56x.
How I did it
Implement get_low_power_mode/set_low_power_mode in sfputil.py
How to verify it
sfputil show lpmode
sfputil lpmode off
sfputil lpmode on
Description for the changelog
Access eeprom from transceiver to get/set lpmode status
If "Power override" bit is not set, return the H/W pin status depended on H/W design.
For as7326-56x, this pin is pulled high which is Low Power Mode.
If "Power override" bit is set, retrun the S/W lpmode status read from eeprom.
Below is the Power Mode Truth Table defined in sff-8436
LPMode_Pin Power_overide_Bit Power_set_Bit Module_Power_Allowed
1 0 X Low Power
0 0 X High Power
X 1 1 Low Power
X 1 0 High Power