difos/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx
Jonas Jelonek 6432b41180 realtek: rtl931x: fix setting number of leds per port
In rtl931x_led_init, the number of leds per port is not properly set. It
currently uses a hardcoded value of 1 which seems to be taken initially
from a specific device. This hardcoded value assumes any port always has
exactly two leds.

The RTL930x variant - rtl930x_led_init - does a better job at this. So
take it and use it for RTL931x too with the corresponding register.
While at it, rename the function to a proper naming scheme.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19241
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-07-13 16:47:42 +02:00
..
common.c realtek: 6.12: proper mdio c45 handling in DSA driver 2025-06-11 22:27:22 +02:00
debugfs.c realtek: 6.12: create files-6.12 from files-6.6 2025-06-11 22:27:21 +02:00
dsa.c realtek: 6.12: align internal/external mac eee function names 2025-06-11 22:27:22 +02:00
Kconfig realtek: 6.12: create files-6.12 from files-6.6 2025-06-11 22:27:21 +02:00
Makefile realtek: 6.12: create files-6.12 from files-6.6 2025-06-11 22:27:21 +02:00
qos.c realtek: 6.12: create files-6.12 from files-6.6 2025-06-11 22:27:21 +02:00
rtl83xx.h realtek: 6.12: create files-6.12 from files-6.6 2025-06-11 22:27:21 +02:00
rtl838x.c realtek: 6.12: allow mixed c22/c45 bus access 2025-06-11 22:27:22 +02:00
rtl838x.h realtek: 6.12: align internal/external mac eee function names 2025-06-11 22:27:22 +02:00
rtl839x.c realtek: 6.12: align internal/external mac eee function names 2025-06-11 22:27:22 +02:00
rtl930x.c realtek: 6.12: align internal/external mac eee function names 2025-06-11 22:27:22 +02:00
rtl931x.c realtek: rtl931x: fix setting number of leds per port 2025-07-13 16:47:42 +02:00
tc.c realtek: 6.12: create files-6.12 from files-6.6 2025-06-11 22:27:21 +02:00