[PATCH net-next 0/4] net: altera-tse: Cleanup init sequence
Maxime Chevallier
maxime.chevallier at bootlin.com
Thu Oct 30 03:24:13 PDT 2025
When Altera TSE was converted to phylink, the PCS and phylink creation
were added after register_netdev(), which is wrong as this may race
with .ndo_open() once the netdev is registered.
This series makes so that we register the netdev once all resources are
cleanly initialised, that includes PCS and phylink creation as well as a
few other operations such as reading the IP version.
No errors were found in the wild, so this series doesn't target net, but
given that we fix some racy-ness, a point could be made to send that to
net.
This series doesn't introduce functional changes, however the internal
mii_bus for PCS configuration is renamed.
Maxime Chevallier (4):
net: altera-tse: Set platform drvdata before registering netdev
net: altera-tse: Read core revision before registering netdev
net: altera-tse: Don't use netdev name for the PCS mdio bus
net: altera-tse: Init PCS and phylink before registering netdev
drivers/net/ethernet/altera/altera_tse_main.c | 37 +++++++++----------
1 file changed, 18 insertions(+), 19 deletions(-)
--
2.49.0
More information about the linux-arm-kernel
mailing list