Skip to content

[AS7712-32X]Fixes led drv and add fan_direction sysfs#8580

Open
jostar-yang wants to merge 1 commit intosonic-net:masterfrom
jostar-yang:as7712_20210825_fix_led_drv
Open

[AS7712-32X]Fixes led drv and add fan_direction sysfs#8580
jostar-yang wants to merge 1 commit intosonic-net:masterfrom
jostar-yang:as7712_20210825_fix_led_drv

Conversation

@jostar-yang
Copy link
Contributor

Signed-off-by: Jostar Yang jostar_yang@accton.com.tw

Why I did it

Fixes led drv and add fan_direction sysfs

How I did it

  1. Modify max_brightness = LED_MODE_GREEN
  2. Add fan_drection sysfs

How to verify it

echo 16 > brightness (show green in diag LED)
echo 10 > brightness (show red in diag LED)
echo 0 > brightness (turn off diag LED)
cat fan1_direction and show correct direction value.

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

  • 201811
  • 201911
  • 202006
    --> Please merge to this branch because old led drv has bug and need fan_direction sysfs.
  • 202012
    --> Please merge to this branch because old led drv has bug and need fan_direction sysfs.
  • 202106
    --> Please merge to this branch because old led drv has bug and need fan_direction sysfs.

Description for the changelog

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

Signed-off-by: Jostar Yang <jostar_yang@accton.com.tw>
@jostar-yang jostar-yang requested a review from lguohan as a code owner August 25, 2021 07:25
@seanwu-ec seanwu-ec mentioned this pull request Dec 28, 2021
5 tasks
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