]> git.ipfire.org Git - thirdparty/linux.git/commit
net: dsa: realtek: Fix LED group port bit for non-zero LED group
authorMarek Behún <kabel@kernel.org>
Wed, 11 Mar 2026 11:12:37 +0000 (12:12 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Mar 2026 02:03:21 +0000 (19:03 -0700)
commite8f0dc024ce55451ebd54bad975134ba802e4fcc
tree6006f774cc4cac984adea67bf1a7aa0decf12519
parent6c5a9baa15de240e747263aba435a0951da8d8d2
net: dsa: realtek: Fix LED group port bit for non-zero LED group

The rtl8366rb_led_group_port_mask() function always returns LED port
bit in LED group 0; the switch statement returns the same thing in all
non-default cases.

This means that the driver does not currently support configuring LEDs
in non-zero LED groups.

Fix this.

Fixes: 32d617005475a71e ("net: dsa: realtek: add LED drivers for rtl8366rb")
Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260311111237.29002-1-kabel@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/realtek/rtl8366rb-leds.c