Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-03-26 Thread xiaofeis
On 2019-02-28 11:54, Florian Fainelli wrote: On 2/27/2019 6:23 PM, xiaof...@codeaurora.org wrote: On 2019-02-27 11:13, Florian Fainelli wrote: On 2/26/2019 6:04 PM, xiaof...@codeaurora.org wrote: On 2019-02-26 15:45, xiaof...@codeaurora.org wrote: On 2019-02-26 01:27, Florian Fainelli wrote:

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-03-04 Thread Andrew Lunn
> 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 = [

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-03-03 Thread Vinod Koul
On 04-03-19, 11:46, xiaof...@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. >

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-03-03 Thread xiaofeis
On 2019-02-28 11:54, Florian Fainelli wrote: On 2/27/2019 6:23 PM, xiaof...@codeaurora.org wrote: On 2019-02-27 11:13, Florian Fainelli wrote: On 2/26/2019 6:04 PM, xiaof...@codeaurora.org wrote: On 2019-02-26 15:45, xiaof...@codeaurora.org wrote: On 2019-02-26 01:27, Florian Fainelli wrote:

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-03-03 Thread xiaofeis
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

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-02-27 Thread Florian Fainelli
On 2/27/2019 6:23 PM, xiaof...@codeaurora.org wrote: > On 2019-02-27 11:13, Florian Fainelli wrote: >> On 2/26/2019 6:04 PM, xiaof...@codeaurora.org wrote: >>> On 2019-02-26 15:45, xiaof...@codeaurora.org wrote: On 2019-02-26 01:27, Florian Fainelli wrote: > On 2/25/19 5:28 AM, xiaof...

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-02-27 Thread xiaofeis
On 2019-02-27 11:13, Florian Fainelli wrote: On 2/26/2019 6:04 PM, xiaof...@codeaurora.org wrote: On 2019-02-26 15:45, xiaof...@codeaurora.org wrote: On 2019-02-26 01:27, Florian Fainelli wrote: On 2/25/19 5:28 AM, xiaof...@codeaurora.org wrote: Hi Florian We have two slave DSA interfaces, w

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-02-26 Thread xiaofeis
On 2019-02-27 10:04, xiaof...@codeaurora.org wrote: On 2019-02-26 15:45, xiaof...@codeaurora.org wrote: On 2019-02-26 01:27, Florian Fainelli wrote: On 2/25/19 5:28 AM, xiaof...@codeaurora.org wrote: Hi Florian We have two slave DSA interfaces, wan0 and lan0, one is for wan port, and the oth

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-02-26 Thread Florian Fainelli
On 2/26/2019 6:04 PM, xiaof...@codeaurora.org wrote: > On 2019-02-26 15:45, xiaof...@codeaurora.org wrote: >> On 2019-02-26 01:27, Florian Fainelli wrote: >>> On 2/25/19 5:28 AM, xiaof...@codeaurora.org wrote: Hi Florian We have two slave DSA interfaces, wan0 and lan0, one is for

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-02-26 Thread xiaofeis
On 2019-02-26 15:45, xiaof...@codeaurora.org wrote: On 2019-02-26 01:27, Florian Fainelli wrote: On 2/25/19 5:28 AM, xiaof...@codeaurora.org wrote: Hi Florian We have two slave DSA interfaces, wan0 and lan0, one is for wan port, and the other is for lan port. Customer has it's mac address pool

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-02-25 Thread xiaofeis
On 2019-02-26 01:27, Florian Fainelli wrote: On 2/25/19 5:28 AM, xiaof...@codeaurora.org wrote: Hi Florian We have two slave DSA interfaces, wan0 and lan0, one is for wan port, and the other is for lan port. Customer has it's mac address pool, they want to assign the mac address from the pool

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-02-25 Thread Florian Fainelli
On 2/25/19 5:28 AM, xiaof...@codeaurora.org wrote: > Hi Florian > > We have two slave DSA interfaces, wan0 and lan0, one is for wan port, > and the other is for lan port. Customer has it's mac address pool, they > want > to assign the mac address from the pool on wan0, lan0, and other > interfaces

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-02-25 Thread xiaofeis
Hi Florian We have two slave DSA interfaces, wan0 and lan0, one is for wan port, and the other is for lan port. Customer has it's mac address pool, they want to assign the mac address from the pool on wan0, lan0, and other interfaces like wifi, bt. Coreboot/uboot will populate it to the DTS nod

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-02-22 Thread Florian Fainelli
On 2/22/19 4:58 AM, Vinod Koul wrote: > From: Xiaofei Shen > > Before creating a slave netdevice, get the mac address from DTS and > apply in case it is valid. Can you explain your use case in details? Assigning a MAC address to a network device that represents a switch port does not quite m

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-02-22 Thread Andrew Lunn
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 thi

[PATCH] net: dsa: read mac address from DT for slave device

2019-02-22 Thread Vinod Koul
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 --- include/net/dsa.h | 1 + net/dsa/dsa2.c| 1 + net/dsa/slave.c | 5 - 3 files changed, 6 insertions(+), 1 deleti