Re: Aw: Re: [RFC v1 1/5] dt-bindings: leds: add led trigger netdev

From
Krzysztof Kozlowski <hidden>
Date
2024-05-07 06:10:26
Also in
linux-clk, linux-devicetree, linux-leds, linux-mediatek, lkml, netdev
Reply to
Frank Wunderlich, 2024-05-06
On 06/05/2024 19:10, Frank Wunderlich wrote:
Hi
quoted
Gesendet: Montag, 06. Mai 2024 um 10:18 Uhr
Von: "Krzysztof Kozlowski" [off-list ref]
An: "Frank Wunderlich" [off-list ref], "Rob Herring" [off-list ref], "Krzysztof Kozlowski" [off-list ref], "Conor Dooley" [off-list ref], "Michael Turquette" [off-list ref], "Stephen Boyd" [off-list ref], "Pavel Machek" [off-list ref], "Lee Jones" [off-list ref], "David S. Miller" [off-list ref], "Eric Dumazet" [off-list ref], "Jakub Kicinski" [off-list ref], "Paolo Abeni" [off-list ref], "Matthias Brugger" [off-list ref], "AngeloGioacchino Del Regno" [off-list ref]
Cc: "Frank Wunderlich" <redacted>, "Eric Woudstra" <redacted>, "Tianling Shen" <redacted>, <redacted>, <redacted>, <redacted>, <redacted>, <redacted>, <redacted>, <redacted>
Betreff: Re: [RFC v1 1/5] dt-bindings: leds: add led trigger netdev

On 05/05/2024 18:45, Frank Wunderlich wrote:
quoted
From: Frank Wunderlich <redacted>

Add led trigger implemented with config-symbol LEDS_TRIGGER_NETDEV to
binding.

Signed-off-by: Frank Wunderlich <redacted>
---
 Documentation/devicetree/bindings/leds/common.yaml | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml
index 8a3c2398b10c..bf9a101e4d42 100644
--- a/Documentation/devicetree/bindings/leds/common.yaml
+++ b/Documentation/devicetree/bindings/leds/common.yaml
@@ -113,6 +113,8 @@ properties:
             # LED indicates NAND memory activity (deprecated),
             # in new implementations use "mtd"
           - nand-disk
+            # LED indicates network activity
+          - netdev
"dev" is redundant (there is no flash-dev or usb-host-dev). Two network
interfaces are already provided, so your commit msg must provide
rationale why this is not enough and why this is useful/needed.
i only see 1 network binding...and this is labeled/described with wlan and phy

        # LED is triggered by WLAN activity
      - pattern: "^phy[0-9]+tx$"

which second do you mean?

btw. usb + disk has 3 trigger and "netdev" is already used in some dts, so i thought adding the binding is a good idea

arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts:107:			 * linux,default-trigger = "netdev";
arch/arm/boot/dts/nxp/imx/imx53-m53menlo.dts:52:			linux,default-trigger = "netdev";
arch/arm/boot/dts/intel/ixp/intel-ixp42x-dlink-dsm-g600.dts:51:			linux,default-trigger = "netdev";
arch/arm/boot/dts/intel/ixp/intel-ixp42x-iomega-nas100d.dts:39:			linux,default-trigger = "netdev";
arch/arm/boot/dts/ti/omap/am5729-beagleboneai.dts:138:			linux,default-trigger = "netdev";
arch/arm/boot/dts/ti/omap/am335x-netcan-plus-1xx.dts:27:			linux,default-trigger = "netdev";
arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts:107:			linux,default-trigger = "netdev";
arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts:113:			linux,default-trigger = "netdev";
Then please check previous discussions:
https://lore.kernel.org/all/20230217230346.GA2217008-robh@kernel.org/ (local)

Best regards,
Krzysztof


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (30 messages) 30 messages, 6 authors, last reply 2024-05-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help