]> git.baikalelectronics.ru Git - uboot.git/commit
net: dsa: probe master device
authorMichael Walle <michael@walle.cc>
Wed, 24 Feb 2021 16:40:40 +0000 (17:40 +0100)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 5 Mar 2021 04:55:42 +0000 (10:25 +0530)
commitd76669d000176c13e8bb73b2cd35762cc169fcea
tree5658910da0c5b80f7063cc43eae17b099e31e71c
parent0d8a3856cfdbfbf049eb3518b41d538788a153a5
net: dsa: probe master device

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: 30f394f4206c ("net: Introduce DSA class for Ethernet switches")
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
net/dsa-uclass.c