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

net: phy: motorcomm: Add support for PHY LEDs on YT8531

The LED registers on YT8531 are exactly same as YT8521, so simply
reuse yt8521_led_hw_* functions.

Tested on OrangePi R1 Plus LTS and Zero3.

Signed-off-by: Tianling Shen <cnsztl@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Jijie Shao<shaojijie@huawei.com>
Link: https://patch.msgid.link/20251026133652.1288732-1-cnsztl@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Tianling Shen and committed by
Jakub Kicinski
a8abe8e2 61958b33

+3
+3
drivers/net/phy/motorcomm.c
··· 3048 3048 .get_wol = ytphy_get_wol, 3049 3049 .set_wol = yt8531_set_wol, 3050 3050 .link_change_notify = yt8531_link_change_notify, 3051 + .led_hw_is_supported = yt8521_led_hw_is_supported, 3052 + .led_hw_control_set = yt8521_led_hw_control_set, 3053 + .led_hw_control_get = yt8521_led_hw_control_get, 3051 3054 }, 3052 3055 { 3053 3056 PHY_ID_MATCH_EXACT(PHY_ID_YT8531S),