[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9b81c4c88090606c25c75196ed2ec79c@codeaurora.org>
Date: Wed, 27 Mar 2019 12:09:07 +0800
From: xiaofeis@...eaurora.org
To: Andrew Lunn <andrew@...n.ch>
Cc: Vinod Koul <vkoul@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
linux-arm-msm@...r.kernel.org,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Niklas Cassel <niklas.cassel@...aro.org>,
netdev@...r.kernel.org
Subject: Re: [PATCH] net: dsa: Inherit dev addr from master
On 2019-02-25 21:21, Andrew Lunn wrote:
>> I think we can remove the first inherit, but if keep it, we can see
>> consistent address output by ifconfig -a before open master and slave
>> interface.
>
> True
>
> But it also means we see inconsistent MAC addresses on the master. The
> MAC address changes on open.
>
> Maybe it would be better to change your master so it sets its MAC
> address during probe? Everything is then consistent all the time.
>
> Andrew
I'm trying to suggest our master driver owner to set MAC address during
probe.
I found in kernel, different driver has different implementation, some
set it in probe, while
some in open. DSA should be generic to work with all these master
drivers. I think this change
can help. Thanks.
Powered by blists - more mailing lists