Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: phy: realtek: Add support for PHY LEDs on RTL8211F-VD

Realtek RTL8211F-VD has the same LED configuration
and registers as RTL8211F.
Use the existing LED related functions for this chip,
so it is possible to also use the netdev trigger.

Tested on ROCK Pi E.

Signed-off-by: Kryštof Černý <cleverline1mc@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260304-rtl8211fvd-add-leds-v2-1-d50bd8a50f08@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Kryštof Černý and committed by
Jakub Kicinski
752941e3 0b1324cd

+3
+3
drivers/net/phy/realtek/realtek_main.c
··· 2243 2243 .read_page = rtl821x_read_page, 2244 2244 .write_page = rtl821x_write_page, 2245 2245 .flags = PHY_ALWAYS_CALL_SUSPEND, 2246 + .led_hw_is_supported = rtl8211x_led_hw_is_supported, 2247 + .led_hw_control_get = rtl8211f_led_hw_control_get, 2248 + .led_hw_control_set = rtl8211f_led_hw_control_set, 2246 2249 }, { 2247 2250 .name = "Generic FE-GE Realtek PHY", 2248 2251 .match_phy_device = rtlgen_match_phy_device,