openwrt/target/linux/mvebu
INAGAKI Hiroshi e0cc69bef4 mvebu: fix LEDs on IIJ SA-W2
On IIJ SA-W2, some multiple LEDs have no "function" property and only
"color" property is available for the newer binding of LED on Linux
Kernel.
9d93b6d091 ("mvebu: drop redundant label with new LED color/function
format") removes "label" property from LEDs, then, multiple "<color>:"
(ex.: "green:"/"red:") will be appeared and renamed to "<color>:_<num>"
(ex.: "green:_1", "green:_2", ...) by kernel.

log:

[    1.911118] leds-gpio leds: Led green: renamed to green:_1 due to name collision
[    1.918600] leds-gpio leds: Led red: renamed to red:_1 due to name collision
[    1.925727] leds-gpio leds: Led green: renamed to green:_2 due to name collision
[    1.933202] leds-gpio leds: Led red: renamed to red:_2 due to name collision
[    1.940321] leds-gpio leds: Led green: renamed to green:_3 due to name collision
[    1.947797] leds-gpio leds: Led red: renamed to red:_3 due to name collision
[    1.954939] leds-gpio leds: Led green: renamed to green:_4 due to name collision
[    1.962456] leds-gpio leds: Led green: renamed to green:_5 due to name collision

/sys/class/leds:

root@OpenWrt:/# ls /sys/class/leds/
green:        green:_3      green:status  red:_2
green:_1      green:_4      red:          red:_3
green:_2      green:_5      red:_1        red:status

Fix this issue by adding missing "function" (and "function-enumerator")
property to those LEDs on IIJ SA-W2.

Fixes: 9d93b6d091 ("mvebu: drop redundant label with new LED color/function format")
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2024-04-14 19:46:30 +02:00
..
base-files/lib/preinit
cortexa9 mvebu: 6.6: copy files, patches & configs from 6.1 2024-04-03 17:49:53 +02:00
cortexa53 mvebu: 6.6: copy files, patches & configs from 6.1 2024-04-03 17:49:53 +02:00
cortexa72 mvebu: puzzle-m90x: wipe rootfs_data on sysupgrade 2024-04-09 14:59:03 +01:00
files-6.1/arch mvebu: fix LEDs on IIJ SA-W2 2024-04-14 19:46:30 +02:00
files-6.6/arch mvebu: fix LEDs on IIJ SA-W2 2024-04-14 19:46:30 +02:00
image mvebu: cortexa9: set DTS dir for 6.6 2024-04-03 17:49:53 +02:00
patches-6.1 kernel: bump 6.1 to 6.1.83 2024-04-14 18:03:37 +02:00
patches-6.6 mvebu: 6.6: refresh patches 2024-04-03 18:42:26 +02:00
Makefile mvebu: add 6.6 testing kernel 2024-04-03 17:49:53 +02:00
config-6.1 mvebu: refresh 6.1 configs 2023-09-08 23:49:00 +02:00
config-6.6 mvebu: 6.6: copy files, patches & configs from 6.1 2024-04-03 17:49:53 +02:00
modules.mk