Skip to contentSkip to conversation

dt-bindings: leds: Add LED_FUNCTION_WAN_ONLINE for Internet access

PATCH Applied Rafał Miłecki 4 participants 4 messages Feb 23, 2024 – Mar 3, 2024

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

PATCH 1/1 dt-bindings: leds: Add LED_FUNCTION_WAN_ONLINE for Internet access

From: Rafał Miłecki <[email protected]>

It's common for routers to have LED indicating link on the WAN port.

Some devices however have an extra LED that's meant to be used if WAN connection is actually "online" (there is Internet access available).

It was suggested to add #define for such use case.

---
 include/dt-bindings/leds/common.h | 1 +
 1 file changed, 1 insertion(+)
include/dt-bindings/leds/common.h +1 -0
index c56785bb9c9c..ecea167930d9 100644
@@ -100,6 +100,7 @@
 #define LED_FUNCTION_TX "tx"
 #define LED_FUNCTION_USB "usb"
 #define LED_FUNCTION_WAN "wan"
+#define LED_FUNCTION_WAN_ONLINE "wan-online"
 #define LED_FUNCTION_WLAN "wlan"
 #define LED_FUNCTION_WLAN_2GHZ "wlan-2ghz"
 #define LED_FUNCTION_WLAN_5GHZ "wlan-5ghz"
Signature · 1 line
2.35.3
Reviewed-by on v1 1/1
#1 lore raw

Il 23/02/24 12:22, Rafał Miłecki ha scritto:

Quoted 8 lines

From: Rafał Miłecki <[email protected]>

It's common for routers to have LED indicating link on the WAN port.

Some devices however have an extra LED that's meant to be used if WAN connection is actually "online" (there is Internet access available).

It was suggested to add #define for such use case.

In this case, you can use the Suggested-by tag, but I'm not picky anyway :-)

Quoted 3 lines
maintainer Applied
#2 lore raw

Re: (subset) [PATCH] dt-bindings: leds: Add LED_FUNCTION_WAN_ONLINE for Internet access

In reply to Rafał Miłecki
Quoted 8 lines · Rafał Miłecki

It's common for routers to have LED indicating link on the WAN port.

Some devices however have an extra LED that's meant to be used if WAN connection is actually "online" (there is Internet access available).

It was suggested to add #define for such use case.

[...]

Applied, thanks!

[1/1] dt-bindings: leds: Add LED_FUNCTION_WAN_ONLINE for Internet access

      commit: c0ef9799df8756968c236720658e492fbe636064

--
Lee Jones [李琼斯]

Reviewed-by on v1 1/1
#3 lore raw
In reply to Rafał Miłecki
Quoted 11 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

It's common for routers to have LED indicating link on the WAN port.

Some devices however have an extra LED that's meant to be used if WAN connection is actually "online" (there is Internet access available).

It was suggested to add #define for such use case.

That looks helpful.

Yours,
Linus Walleij