Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Accton AS7326]: Add lpmode in sfputil.py #2905

Merged
merged 1 commit into from
May 18, 2019

Conversation

brandonchuang
Copy link
Contributor

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

Signed-off-by: brandon_chuang <brandon_chuang@CicadaBuildServer.accton.com.tw>
@lguohan lguohan merged commit 7791950 into sonic-net:master 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>
@brandonchuang brandonchuang deleted the as7326_56x branch December 24, 2020 03:04
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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants