From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinod Koul Subject: Re: [PATCH] net: dsa: read mac address from DT for slave device Date: Mon, 4 Mar 2019 13:01:22 +0530 Message-ID: <20190304073122.GA2598@vkoul-mobl> References: <20190222125815.12866-1-vkoul@kernel.org> <20190222142641.GK5653@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org To: xiaofeis@codeaurora.org Cc: Andrew Lunn , "David S. Miller" , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vivien Didelot , Florian Fainelli , Niklas Cassel , netdev@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org On 04-03-19, 11:46, xiaofeis@codeaurora.org wrote: > On 2019-02-22 22:26, Andrew Lunn wrote: > > On Fri, Feb 22, 2019 at 06:28:15PM +0530, Vinod Koul wrote: > > > From: Xiaofei Shen > > > > > > Before creating a slave netdevice, get the mac address from DTS and > > > apply in case it is valid. > > > > > > Signed-off-by: Xiaofei Shen > > > Signed-off-by: Vinod Koul > > > > Hi Xiaofei, Vinod > > > > It would be good to document this in the binding. > > > > Andrew > > From 4c8597161975dbef5fbe814aeee93599b4c57d37 Mon Sep 17 00:00:00 2001 > From: xiaofeis > Date: Fri, 1 Mar 2019 13:54:52 +0800 > Subject: [PATCH] net: dsa: Add support for port mac address > > Allow port network device's mac address to be retrieved from the > device tree. > > Signed-off-by: xiaofeis > --- > 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..1816f82 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. > + Can you send this as independent patch to Dave and cc netdev and others on this thread. This looks good to me so feel free to add Reviewed-by: Vinod Koul > 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 = [000000000001]; > }; > > port@2 { -- ~Vinod