[AS9716-32D]Support multi PSU SN in PDDF#8214
Merged
lguohan merged 2 commits intosonic-net:masterfrom Jul 24, 2021
Merged
Conversation
FuzailBrcm
reviewed
Jul 19, 2021
| access_psu_model_name.show = pddf_get_custom_psu_model_name; | ||
| access_psu_model_name.do_get = NULL; | ||
|
|
||
| printk(KERN_ERR "pddf_custom_psu_init\n"); |
Contributor
There was a problem hiding this comment.
This print can be removed or made as a debug print
FuzailBrcm
approved these changes
Jul 19, 2021
lguohan
approved these changes
Jul 24, 2021
carl-nokia
pushed a commit
to carl-nokia/sonic-buildimage
that referenced
this pull request
Aug 7, 2021
Add needed code to pddf_custom_psu.c to deal with multi PSU and get SN. How to verify it Plugin new PSU (3Y) and test, ``` root@sonic:/sys/bus/i2c/drivers/psu/9-0050# cat psu_serial_num S0A000X601919000013 root@sonic:/sys/bus/i2c/drivers/psu/9-0050# cat psu_model_name YESM1300AM root@sonic:/home/admin# pddf_psuutil mfrinfo PSU Status Manufacturer ID Model Serial Fan Airflow Direction PSU1 NOT OK 3Y POWER YESM1300AM S0A000X601919000007 exhaust PSU2 OK 3Y POWER YESM1300AM S0A000X601919000013 exhaust ``` Co-authored-by: Jostar Yang <jostar_yang@accton.com.tw>
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.
Why I did it
AS9716-32D PSU. So need DRV to support it.
How I did it
Add needed code to pddf_custom_psu.c to deal with multi PSU and get SN.
How to verify it
Plugin new PSU (3Y) and test,
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)