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

[as4630-54pe]Modify to read correct psu SN and ID #5389

Merged
merged 24 commits into from
Jul 24, 2021

Conversation

jostar-yang
Copy link
Contributor

@jostar-yang jostar-yang commented Sep 16, 2020

- Why I did it
The PSU is specific. Get SN and ID is not meet with standard method.
Old code

# cat psu_serial_number
SB020X18195100004
(It lack the last one byte. It should be SB020X181951000046 )
as4630-54pe-2:/sys/bus/i2c/drivers/as4630_54pe_psu/11-0051# cat psu_model_name
YPEB1200?AM-1A03P10 ( It should beYPEB1200?AM )

- How I did it
Modift psu drv to get and parse/shift need offset to get correct data
- How to verify it
New Code

# cat psu_serial_number
SB020X181951000046

4630-54pe-2:/sys/bus/i2c/drivers/as4630_54pe_psu/11-0051# cat psu_serial_number
SB020X181951000047


as4630-54pe-2:/sys/bus/i2c/drivers/as4630_54pe_psu/11-0051# cat psu_model_name
YPEB1200AM
as4630-54pe-2:/sys/bus/i2c/drivers/as4630_54pe_psu/11-0051#
as4630-54pe-2:/sys/bus/i2c/drivers/as4630_54pe_psu/11-0051#
4630-54pe-2:/sys/bus/i2c/drivers/as4630_54pe_psu/11-0051# cat psu_serial_name
SB020X181951000047
as4630-54pe-2:/sys/bus/i2c/drivers/as4630_54pe_psu/10-0050# cat psu_model_name
YPEB1200AM

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@jleveque
Copy link
Contributor

Retest mellanox please

@jleveque
Copy link
Contributor

Retest vsimage please

jleveque
jleveque previously approved these changes Sep 17, 2020
@lguohan
Copy link
Collaborator

lguohan commented Sep 27, 2020

Retest vsimage please

@lguohan
Copy link
Collaborator

lguohan commented Sep 27, 2020

Retest mellanox please

@lguohan
Copy link
Collaborator

lguohan commented Jan 25, 2021

/AzurePipeline run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jostar-yang
Copy link
Contributor Author

Retest vsimage please

@jostar-yang jostar-yang requested a review from lguohan as a code owner February 6, 2021 20:29
@jostar-yang
Copy link
Contributor Author

jostar-yang commented Jul 8, 2021

@lguohan
Can you help merge code? This PR pass all checking for a long time.

@lguohan lguohan merged commit 24cc827 into sonic-net:master Jul 24, 2021
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
Co-authored-by: Jostar Yang <jostar_yang@accton.com.tw>
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