Skip to contentSkip to conversation

net: dsa: Add support for port mac address

PATCH In review xiaofeis 3 participants 3 messages Mar 5, 2019 – Mar 8, 2019

Subsystems (5)
lore
Share & tools
lore

xiaofeis

author
#0 lore raw

PATCH 1/1 net: dsa: Add support for port mac address

Allow port network device's mac address to be retrieved from the device tree.

---
 Documentation/devicetree/bindings/net/dsa/dsa.txt | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/net/dsa/dsa.txt +5 -0
index cfe8f64..8415f41 100644
@@ -71,6 +71,10 @@ properties, described in binding documents:
 			  Documentation/devicetree/bindings/net/fixed-link.txt
 			  for details.
 
+- local-mac-address	: See
+			  Documentation/devicetree/bindings/net/ethernet.txt
+			  for details.
+
 Example
 
 The following example shows three switches on three MDIO busses,
@@ -99,6 +103,7 @@ linked into one DSA cluster.
 			port@1 {
 				reg = <1>;
 				label = "lan1";
+				local-mac-address = [00 00 00 00 00 00];
 			};
 
 			port@2 {
Signature · 1 line
1.9.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · xiaofeis

Allow port network device's mac address to be retrieved from the device tree.

Quoted 30 lines
---
 Documentation/devicetree/bindings/net/dsa/dsa.txt | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/net/dsa/dsa.txt +5 -0
index cfe8f64..8415f41 100644
@@ -71,6 +71,10 @@ properties, described in binding documents:
 			  Documentation/devicetree/bindings/net/fixed-link.txt
 			  for details.
 
+- local-mac-address	: See
+			  Documentation/devicetree/bindings/net/ethernet.txt
+			  for details.
+
 Example
 
 The following example shows three switches on three MDIO busses,
@@ -99,6 +103,7 @@ linked into one DSA cluster.
 			port@1 {
 				reg = <1>;
 				label = "lan1";
+				local-mac-address = [00 00 00 00 00 00];
 			};
 
 			port@2 {
Signature · 1 line
1.9.1
Signature · 1 line
~Vinod
maintainer
#2 lore raw
In reply to xiaofeis

From: xiaofeis <[email protected]>
Date: Tue, 5 Mar 2019 16:16:53 +0800

Quoted 4 lines

Allow port network device's mac address to be retrieved from the device tree.

You're not "adding support" you are adding documentation for support that already exists.

Please phrase your commit message and subject text so that it accurately describes your change.