* [PATCH] net: phy: motorcomm: Add support for PHY LEDs on YT8531
@ 2025-10-26 13:36 Tianling Shen
2025-10-27 2:10 ` Andrew Lunn
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Tianling Shen @ 2025-10-26 13:36 UTC (permalink / raw)
To: Frank Sae, Andrew Lunn, Heiner Kallweit, Russell King,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Jijie Shao, Tianling Shen
Cc: netdev, linux-kernel
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>
---
drivers/net/phy/motorcomm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c
index a3593e663059..89b5b19a9bd2 100644
--- a/drivers/net/phy/motorcomm.c
+++ b/drivers/net/phy/motorcomm.c
@@ -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),
--
2.51.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] net: phy: motorcomm: Add support for PHY LEDs on YT8531
2025-10-26 13:36 [PATCH] net: phy: motorcomm: Add support for PHY LEDs on YT8531 Tianling Shen
@ 2025-10-27 2:10 ` Andrew Lunn
2025-10-27 9:40 ` Tianling Shen
2025-10-27 6:11 ` Jijie Shao
2025-10-29 2:20 ` patchwork-bot+netdevbpf
2 siblings, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2025-10-27 2:10 UTC (permalink / raw)
To: Tianling Shen
Cc: Frank Sae, Heiner Kallweit, Russell King, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Jijie Shao, netdev,
linux-kernel
On Sun, Oct 26, 2025 at 09:36:52PM +0800, Tianling Shen 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.
In future, please could you put the tree name into the subject.
See:
https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html
> Signed-off-by: Tianling Shen <cnsztl@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: phy: motorcomm: Add support for PHY LEDs on YT8531
2025-10-26 13:36 [PATCH] net: phy: motorcomm: Add support for PHY LEDs on YT8531 Tianling Shen
2025-10-27 2:10 ` Andrew Lunn
@ 2025-10-27 6:11 ` Jijie Shao
2025-10-29 2:20 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 5+ messages in thread
From: Jijie Shao @ 2025-10-27 6:11 UTC (permalink / raw)
To: Tianling Shen, Frank Sae, Andrew Lunn, Heiner Kallweit,
Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni
Cc: shaojijie, netdev, linux-kernel
on 2025/10/26 21:36, Tianling Shen 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.
>
> Signed-off-by: Tianling Shen <cnsztl@gmail.com>
Reviewed-by: Jijie Shao<shaojijie@huawei.com>
> ---
> drivers/net/phy/motorcomm.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c
> index a3593e663059..89b5b19a9bd2 100644
> --- a/drivers/net/phy/motorcomm.c
> +++ b/drivers/net/phy/motorcomm.c
> @@ -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),
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: phy: motorcomm: Add support for PHY LEDs on YT8531
2025-10-27 2:10 ` Andrew Lunn
@ 2025-10-27 9:40 ` Tianling Shen
0 siblings, 0 replies; 5+ messages in thread
From: Tianling Shen @ 2025-10-27 9:40 UTC (permalink / raw)
To: Andrew Lunn
Cc: Frank Sae, Heiner Kallweit, Russell King, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Jijie Shao, netdev,
linux-kernel
Hi Andrew,
On 2025/10/27 10:10, Andrew Lunn wrote:
> On Sun, Oct 26, 2025 at 09:36:52PM +0800, Tianling Shen 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.
>
> 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.
>> Signed-off-by: Tianling Shen <cnsztl@gmail.com>
>
> Reviewed-by: Andrew Lunn <andrew@lunn.ch>
>
> Andrew
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: phy: motorcomm: Add support for PHY LEDs on YT8531
2025-10-26 13:36 [PATCH] net: phy: motorcomm: Add support for PHY LEDs on YT8531 Tianling Shen
2025-10-27 2:10 ` Andrew Lunn
2025-10-27 6:11 ` Jijie Shao
@ 2025-10-29 2:20 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 5+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-10-29 2:20 UTC (permalink / raw)
To: Tianling Shen
Cc: Frank.Sae, andrew, hkallweit1, linux, davem, edumazet, kuba,
pabeni, shaojijie, netdev, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
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.
>
> Signed-off-by: Tianling Shen <cnsztl@gmail.com>
>
> [...]
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-10-29 2:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-26 13:36 [PATCH] net: phy: motorcomm: Add support for PHY LEDs on YT8531 Tianling Shen
2025-10-27 2:10 ` Andrew Lunn
2025-10-27 9:40 ` Tianling Shen
2025-10-27 6:11 ` Jijie Shao
2025-10-29 2:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).