Skip to content

[as5835-54x] Fix read thermal sensor issue#6802

Closed
jostar-yang wants to merge 22 commits intosonic-net:masterfrom
jostar-yang:as5835-54x_20210217_thermalutil
Closed

[as5835-54x] Fix read thermal sensor issue#6802
jostar-yang wants to merge 22 commits intosonic-net:masterfrom
jostar-yang:as5835-54x_20210217_thermalutil

Conversation

@jostar-yang
Copy link
Copy Markdown
Contributor

Why I did it

Fix as5835-54x read thermal sensor issue.
Due to linux create hwmonN node number, N isn't fixed. So modify to use "" to let thermal.py can correct sysfs. For example, use /sys/bus/i2c/devices/18-004b/hwmon/hwmon/temp1_input to instead of /sys/bus/i2c/devices/18-004b/hwmon/hwmon3/temp1_input

How I did it

Fix as5835-54x thermalutil.py.

How to verify it

Reboot DUT, and check as5835-54x-platform-monitor.service.
systemctl status as5835-54x-platform-monitor.service -l
● as5835-54x-platform-monitor.service - Accton AS5835-54X Platform Monitoring se
Loaded: loaded (/lib/systemd/system/as5835-54x-platform-monitor.service; enab
Active: active (running) since Wed 2021-02-17 03:14:18 UTC; 2h 22min ago

Make sure there is no error message.

Error case that will show below message,
Feb 9 03:13:32.531678 54x-02 INFO accton_as5835_54x_monitor.py[2474]: No such device_path=/sys/bus/i2c/devices/19-004c/hwmon/hwmon4/temp1_input
Feb 9 03:13:32.531831 54x-02 INFO accton_as5835_54x_monitor.py[2474]: No such device_path=/sys/bus/i2c/devices/20-0049/hwmon/hwmon5/temp1_input
......

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

  • 201811
  • 201911
  • 202006
  • 202012

Description for the changelog

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

@jostar-yang jostar-yang requested a review from lguohan as a code owner February 17, 2021 05:47
@jostar-yang jostar-yang force-pushed the as5835-54x_20210217_thermalutil branch from 7633291 to c339c6e Compare February 17, 2021 05:50
@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Feb 17, 2021

This pull request introduces 1 alert when merging c339c6e3567cdc56e87922ecfbd162203ce00537 into 6998aef - view on LGTM.com

new alerts:

  • 1 for Unused import

@jostar-yang jostar-yang force-pushed the as5835-54x_20210217_thermalutil branch from e35e96a to edcfca8 Compare April 9, 2021 06:40
@jostar-yang
Copy link
Copy Markdown
Contributor Author

The PR is too old and get file conflict. So create new PR to handle related fixed code.
#9797

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.

1 participant