Skip to contentSkip to conversation

net: dsa: motorcomm: Handle degenerated blink delays

PATCH Applied David Yang 2 participants 2 messages Sep 4 – Sep 10

Subsystems (4)
lore
Share & tools
lore

David Yang

author maintainer
#0 lore raw

PATCH 1/1 net: dsa: motorcomm: Handle degenerated blink delays

The LED core defines delay_on == 0 as steady off and delay_off == 0 as steady on, which was treated as a blink in our LED driver. Fix it.

Fixes 9af9a8168213 ("net: dsa: motorcomm: Add LED support")
---
 drivers/net/dsa/motorcomm/leds.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/dsa/motorcomm/leds.c +2 -0
index 7d3c0f68d8ff..87a6b9cf6068 100644
@@ -107,6 +107,8 @@ yt921x_led_blink_set(struct yt921x_priv *priv, int port, int group,
 		       YT921X_LED_DUTY(1, 2);
 
 		use_cycle = false;
+	} else if (!*onp || !*offp) {
+		return yt921x_led_force_set(priv, port, group, *onp);
 	} else {
 		res = yt921x_led_blink_select(priv, *onp, *offp, &cycle, &duty);
 		if (res)
Signature · 1 line
2.53.0
#1 lore raw
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 Fri, 4 Sep 2026 21:47:46 +0800 you wrote:

The LED core defines delay_on == 0 as steady off and delay_off == 0 as steady on, which was treated as a blink in our LED driver. Fix it.

Fixes 9af9a8168213 ("net: dsa: motorcomm: Add LED support")
---
 drivers/net/dsa/motorcomm/leds.c | 2 ++
 1 file changed, 2 insertions(+)

Here is the summary with links:
- [net-next] net: dsa: motorcomm: Handle degenerated blink delays

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

You are awesome, thank you!

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