-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Edgecore][as4224/as4564] Modify fan driver to support sensors command
Currently, fan information is not shown with the 'sensors' command. This patch will migrate the fan folder under 'hwmon', so that sensors can detect the fan and display its information. sensors output: as4224_fan-isa-0000 Adapter: ISA adapter fan1: 8587 RPM (min = 0 RPM, max = 20500 RPM) fan2: 8667 RPM (min = 0 RPM, max = 20500 RPM) fan3: 8667 RPM (min = 0 RPM, max = 20500 RPM) fan4: 8587 RPM (min = 0 RPM, max = 20500 RPM) fan5: 8746 RPM (min = 0 RPM, max = 20500 RPM) fan6: 8746 RPM (min = 0 RPM, max = 20500 RPM) as4564_fan-isa-0000 Adapter: ISA adapter fan1: 1470 RPM (min = 0 RPM, max = 10670 RPM) fan2: 1510 RPM (min = 0 RPM, max = 10670 RPM) Changes are listed below: - Add min/max fan attributes - Create sysfs attributes under hwmon folder - Modify fani.c/sysi.c accordingly Signed-off-by: Brandon Chuang <[email protected]>
- Loading branch information
1 parent
d97c46b
commit 9f33fed
Showing
7 changed files
with
102 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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