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

[devices]: Add lpmode in sfputil.py for Accton AS7312-54X #3006

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

brandonchuang
Copy link
Contributor

Signed-off-by: brandon_chuang brandon_chuang@edge-core.com

CPU: Intel Atom® Processor C2538
MAC: Broadcom Tomahawk BCM56963
BMC: None

What I did
Add lpmode in sfputil.py for as7312-54x.
.

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 as7312-54x, this pin is pulled low which is High 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@edge-core.com>
@lguohan
Copy link
Collaborator

lguohan commented Jun 29, 2019

retest vs please

@lguohan lguohan merged commit d0981c4 into sonic-net:master Jul 3, 2019
yxieca pushed a commit that referenced this pull request Jan 10, 2024
…lly (#17710)

src/sonic-swss

* 97aa5463 - (HEAD -> 202205, origin/202205) [202205][routeorch] Fixing bug with multiple routes pointing to nhg  (#3006)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants