From: Vladimir Oltean Date: Tue, 23 Feb 2021 18:34:21 +0200 Subject: [RFC PATCH 2/2] net: dsa: probe master device In-Reply-To: <20210223161906.9177-3-michael@walle.cc> References: <20210223161906.9177-1-michael@walle.cc> <20210223161906.9177-3-michael@walle.cc> Message-ID: <20210223163421.bo74zu7zodilwlsj@skbuf> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Feb 23, 2021 at 05:19:06PM +0100, Michael Walle wrote: > DSA needs to have the master device probed first for MAC inheritance. > Until now, it only works by chance because the only user (LS1028A SoC) > will probe the master device first. The probe order is given by the PCI > device ordering, thus it works because the master device has a "smaller" > BDF then the switch device. > > Explicitly probe the master device in dsa_port_probe(). > > Fixes: fc054d563bfb ("net: Introduce DSA class for Ethernet switches") > Signed-off-by: Michael Walle > --- Reviewed-by: Vladimir Oltean By the way we had this in the old driver that marinated too much and never got merged, I am not sure why we removed it during the second submission process: https://github.com/openil/u-boot/commit/2544ed8051d3dce55b12e13b6c2b476733d19c05