Skip to content

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

Merged
lguohan merged 24 commits intosonic-net:masterfrom
jostar-yang:as4630-54pe_20200916_psu_id
Jul 24, 2021
Merged

[as4630-54pe]Modify to read correct psu SN and ID#5389
lguohan merged 24 commits intosonic-net:masterfrom
jostar-yang:as4630-54pe_20200916_psu_id

Conversation

@jostar-yang
Copy link
Copy Markdown
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
Copy Markdown
Contributor

Retest mellanox please

@jleveque
Copy link
Copy Markdown
Contributor

Retest vsimage please

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

lguohan commented Sep 27, 2020

Retest vsimage please

@lguohan
Copy link
Copy Markdown
Collaborator

lguohan commented Sep 27, 2020

Retest mellanox please

@lguohan
Copy link
Copy Markdown
Collaborator

lguohan commented Jan 25, 2021

/AzurePipeline run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@jostar-yang
Copy link
Copy Markdown
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
Copy Markdown
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
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