mbox series

[RFC,0/2] net: dsa: various fixes

Message ID 20210223161906.9177-1-michael@walle.cc
Headers show
Series net: dsa: various fixes | expand

Message

Michael Walle Feb. 23, 2021, 4:19 p.m. UTC
Before a DSA port is probed, the master port needs to be probed first. For
now this worked, because the probing order was correct. But it already
falls short if you use the enetc6 port on the LS1028A SoC:

Device tree snippet:

&enetc6 {
	status = "okay";
};

&mscc_felix_port5 {
	ethernet = <&enetc6>;
	status = "okay";
};

NB. keep enetc2 enabled, otherwise you will trigger an access violation.

Michael Walle (2):
  net: dsa: return early if there is no master
  net: dsa: probe master device

 net/dsa-uclass.c | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)