Skip to contentSkip to conversation

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

PATCH Applied Tianling Shen 4 participants 5 messages Oct 26, 2025 – Oct 29, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/phy/motorcomm.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/phy/motorcomm.c +3 -0
index a3593e663059..89b5b19a9bd2 100644
@@ -3048,6 +3048,9 @@ static struct phy_driver motorcomm_phy_drvs[] = {
 		.get_wol	= ytphy_get_wol,
 		.set_wol	= yt8531_set_wol,
 		.link_change_notify = yt8531_link_change_notify,
+		.led_hw_is_supported = yt8521_led_hw_is_supported,
+		.led_hw_control_set = yt8521_led_hw_control_set,
+		.led_hw_control_get = yt8521_led_hw_control_get,
 	},
 	{
 		PHY_ID_MATCH_EXACT(PHY_ID_YT8531S),
Signature · 1 line
2.51.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Tianling Shen

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.

In future, please could you put the tree name into the subject. See:

https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html

Quoted 1 line

Andrew

#2 lore raw

Hi Andrew,

Quoted 11 lines · Andrew Lunn
Quoted 4 lines · Tianling Shen

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.

In future, please could you put the tree name into the subject. See:

https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html

Sorry I missed this. This is my first time sending patches to netdev, I will follow the instructions next time. Thank you for the information!

Thanks,
Tianling.

Quoted 5 lines
Quoted 1 line

Andrew

Reviewed-by on v1 1/1
#3 lore raw
In reply to Tianling Shen
Quoted 6 lines · Tianling Shen

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.

Quoted 18 lines
---
  drivers/net/phy/motorcomm.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/net/phy/motorcomm.c +3 -0
index a3593e663059..89b5b19a9bd2 100644
@@ -3048,6 +3048,9 @@ static struct phy_driver motorcomm_phy_drvs[] = {
  		.get_wol	= ytphy_get_wol,
  		.set_wol	= yt8531_set_wol,
  		.link_change_notify = yt8531_link_change_notify,
+		.led_hw_is_supported = yt8521_led_hw_is_supported,
+		.led_hw_control_set = yt8521_led_hw_control_set,
+		.led_hw_control_get = yt8521_led_hw_control_get,
  	},
  	{
  		PHY_ID_MATCH_EXACT(PHY_ID_YT8531S),
#4 lore raw
In reply to Tianling Shen
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Sun, 26 Oct 2025 21:36:52 +0800 you wrote:

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.

[...]

Here is the summary with links:
- net: phy: motorcomm: Add support for PHY LEDs on YT8531

    https://git.kernel.org/netdev/net-next/c/a8abe8e210c1

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html