diff mbox series

net: dsa: Add support for port mac address

Message ID 1551773813-34925-1-git-send-email-xiaofeis@codeaurora.org
State Changes Requested
Delegated to: David Miller
Headers show
Series net: dsa: Add support for port mac address | expand

Commit Message

xiaofeis March 5, 2019, 8:16 a.m. UTC
Allow port network device's mac address to be retrieved from the
device tree.

Signed-off-by: xiaofeis <xiaofeis@codeaurora.org>
---
 Documentation/devicetree/bindings/net/dsa/dsa.txt | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Vinod Koul March 5, 2019, 8:58 a.m. UTC | #1
On 05-03-19, 16:16, xiaofeis wrote:
> Allow port network device's mac address to be retrieved from the
> device tree.

Reviewed-by: Vinod Koul <vkoul@kernel.org>

> Signed-off-by: xiaofeis <xiaofeis@codeaurora.org>
> ---
>  Documentation/devicetree/bindings/net/dsa/dsa.txt | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.txt b/Documentation/devicetree/bindings/net/dsa/dsa.txt
> index cfe8f64..8415f41 100644
> --- a/Documentation/devicetree/bindings/net/dsa/dsa.txt
> +++ b/Documentation/devicetree/bindings/net/dsa/dsa.txt
> @@ -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 {
> -- 
> 1.9.1
David Miller March 8, 2019, 7:46 p.m. UTC | #2
From: xiaofeis <xiaofeis@codeaurora.org>
Date: Tue,  5 Mar 2019 16:16:53 +0800

> Allow port network device's mac address to be retrieved from the
> device tree.
> 
> Signed-off-by: xiaofeis <xiaofeis@codeaurora.org>

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.
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.txt b/Documentation/devicetree/bindings/net/dsa/dsa.txt
index cfe8f64..8415f41 100644
--- a/Documentation/devicetree/bindings/net/dsa/dsa.txt
+++ b/Documentation/devicetree/bindings/net/dsa/dsa.txt
@@ -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 {