Skip to content

net: altera-tse: Cleanup init sequence

Maxime Chevallier linux-arm-kernel lkml netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesApplied 4/4
  2. v14 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Add Andrew's review tags
- Change patch 2, to get rid of priv->revision and print the core revision at probe time instead of doing it in .ndo_open()

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4net: altera-tse: Set platform drvdata before registering netdevdrivers/net/ethernet/altera/altera_tse_main.c+1 -21 replyApplied
2/4net: altera-tse: Warn on bad revision at probe timedrivers/net/ethernet/altera/altera_tse.h drivers/net/ethernet/altera/altera_tse_main.c+6 -91 replyApplied
3/4net: altera-tse: Don't use netdev name for the PCS mdio busdrivers/net/ethernet/altera/altera_tse_main.c+1 -10 repliesApplied
4/4net: altera-tse: Init PCS and phylink before registering netdevdrivers/net/ethernet/altera/altera_tse_main.c+20 -200 repliesApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchAndrew Lunn
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 0/4] net: altera-tse: Cleanup init sequence

Hi, this is a V2 for Altera TSE cleanup to make sure everything is properly intialized before registering the netdev.

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.

V2:
- Add Andrew's review tags
- Change patch 2, to get rid of priv->revision and print the core revision at probe time instead of doing it in .ndo_open()

V1: https://lore.kernel.org/netdev/[email protected]/

Maxime Chevallier (4):
net: altera-tse: Set platform drvdata before registering netdev
net: altera-tse: Warn on bad revision at probe time
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.h      |  3 --
 drivers/net/ethernet/altera/altera_tse_main.c | 47 +++++++++----------
 2 files changed, 23 insertions(+), 27 deletions(-)
Signature · 1 line
2.49.0