[Minipack] Support API2.0 and fix drv in kernel5.10 #9776
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.
Signed-off-by: Jostar Yang [email protected]
Why I did it
Support API2.0 and fix drv in kernel5.10
How I did it
How to verify it
Test show cmd and sensors.
root@sonic:/home/admin# show platform fan
Drawer LED FAN Speed Direction Presence Status Timestamp
FanTray1 green FAN-1F 52% intake Present OK 20220117 08:00:14
FanTray1 green FAN-1R 52% intake Present OK 20220117 08:00:16
FanTray2 green FAN-2F 47% intake Present OK 20220117 08:00:20
FanTray2 green FAN-2R 50% intake Present OK 20220117 08:00:24
FanTray3 green FAN-3F 52% intake Present OK 20220117 08:00:26
FanTray3 green FAN-3R 52% intake Present OK 20220117 08:00:28
FanTray4 green FAN-4F 47% intake Present OK 20220117 08:00:30
FanTray4 green FAN-4R 50% intake Present OK 20220117 07:59:53
FanTray5 green FAN-5F 52% intake Present OK 20220117 07:59:56
FanTray5 green FAN-5R 50% intake Present OK 20220117 08:00:01
FanTray6 green FAN-6F 50% intake Present OK 20220117 08:00:03
FanTray6 green FAN-6R 50% intake Present OK 20220117 08:00:05
FanTray7 green FAN-7F 52% intake Present OK 20220117 08:00:05
FanTray7 green FAN-7R 52% intake Present OK 20220117 08:00:05
FanTray8 green FAN-8F 50% intake Present OK 20220117 08:00:05
FanTray8 green FAN-8R 50% intake Present OK 20220117 08:00:05
N/A red PSU-1 FAN-1 N/A N/A Not Present N/A 20220117 08:00:05
N/A red PSU-2 FAN-1 N/A N/A Not Present N/A 20220117 08:00:05
N/A red PSU-3 FAN-1 N/A N/A Not Present N/A 20220117 08:00:05
N/A green PSU-4 FAN-1 100% intake Present OK 20220117 08:00:05
root@sonic:/home/admin#
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)