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

[device][accton] as5812_54x: validate sensors to show values of PSUs #3866

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

roylee123
Copy link
Collaborator

@roylee123 roylee123 commented Dec 10, 2019

Validate sensors to show values of PSUs.

- What I did
Validate PSU device nodes to fit the naming of lm-sensors.

- How I did it
Replace PSU drivers which support lm-sensors.

- How to verify it
Simply by sensors command.
root@as5812-54x:/home/admin# sensors
ym2401-i2c-58-5b
Adapter: i2c-0-mux (chan_id 2)
in3: +0.00 V
fan1: 0 RPM
temp1: +0.0 C
power2: 0.00 W
curr2: +0.00 A

cpr_4011_4mxx-i2c-58-3f
Adapter: i2c-0-mux (chan_id 2)
in1: +227.00 V
in2: +12.00 V
fan1: 6304 RPM
temp1: +28.0 C
power1: 75.00 mW
power2: 64.00 mW
curr1: +0.38 A
curr2: +5.38 A

ym2401-i2c-57-58
...
cpr_4011_4mxx-i2c-57-3c
...

- Description for the changelog
Link cpr_4011_4mxx.c and ym2651y.c to ones at the common directory.
Install ym2401 for this kind of PSUs can be employed.
Fix a typo at cpld driver.

Signed-off-by: roy_lee <roy_lee@accton.com>
Insmod ym driver also, for psu is exchangable.
Signed-off-by: roy_lee <roy_lee@accton.com>
@lguohan
Copy link
Collaborator

lguohan commented May 21, 2020

retest this please

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