[openwrt/openwrt] realtek: rtl838x: label switch port dts nodes

LEDE Commits lede-commits at lists.infradead.org
Tue Sep 13 00:23:06 PDT 2022


svanheule pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/5f026f12728fbe9fe909c44c293f4ea58311d50f

commit 5f026f12728fbe9fe909c44c293f4ea58311d50f
Author: Alexandru Gagniuc <mr.nuke.me at gmail.com>
AuthorDate: Mon Aug 29 09:25:55 2022 -0500

    realtek: rtl838x: label switch port dts nodes
    
    Although PHY nodes are labeled, the port nodes were not. Labeling of
    ports is useful for 'status = "disabled"' ports, which is supported
    since commit 9a7f17e11f5d ("realtek: ignore disabled switch ports")
    
    Signed-off-by: Alexandru Gagniuc <mr.nuke.me at gmail.com>
---
 target/linux/realtek/dts-5.10/rtl838x.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/realtek/dts-5.10/rtl838x.dtsi b/target/linux/realtek/dts-5.10/rtl838x.dtsi
index f92af17ef1..256efb1c05 100644
--- a/target/linux/realtek/dts-5.10/rtl838x.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl838x.dtsi
@@ -37,7 +37,7 @@
 	};
 
 #define SWITCH_PORT(n, s, m) \
-	port@##n { \
+	port##n: port@##n { \
 		reg = <##n>; \
 		label = SWITCH_PORT_LABEL(s) ; \
 		phy-handle = <&phy##n>; \
@@ -45,7 +45,7 @@
 	};
 
 #define SWITCH_SFP_PORT(n, s, m) \
-	port@##n { \
+	port##n: port@##n { \
 		reg = <##n>; \
 		label = SWITCH_PORT_LABEL(s) ; \
 		phy-handle = <&phy##n>; \




More information about the lede-commits mailing list