Skip to content

net: macb: convert to phylink

Antoine Tenart netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v21 patch 2 repliesSuperseded
  3. v11 patch 6 repliesSuperseded

Changes in v3 from the cover letter

- Moved the Tx and Rx buffer initialization rework to its own patch.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: macb: move the Tx and Rx buffer initialization into a functiondrivers/net/ethernet/cadence/macb_main.c+24 -151 reply
2/2net: macb: convert to phylinkdrivers/net/ethernet/cadence/Kconfig drivers/net/ethernet/cadence/macb.h drivers/net/ethernet/cadence/macb_main.c+237 -2190 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAlexandre BelloniNicolas Ferre
1/2A-b
2/2T-b

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

Read the v3 thread

Cover letter [PATCH net-next v3 0/2] net: macb: convert to phylink

Hello,

This series converts the MACB Ethernet driver to the Phylink framework. The MAC configuration is moved to the Phylink ops and Phylink helpers are now used in the ethtools functions. This helps to access the flow control and pauseparam logic and this will be helpful in the future for boards using this controller with SFP cages.

Thanks,
Antoine

Since v2:
- Moved the Tx and Rx buffer initialization rework to its own patch.

Since v1:
- Stopped using state->link in mac_config and moved macb_set_tx_clk to the link_up helper..
- Fixed the node given to phylink_of_phy_connect.
- Removed netif_carrier_off from macb_open.
- Fixed the macb_get_wol logic.
- Rewored macb_ioctl as suggested.
- Added a call to phylink_destroy in macb_remove.
- Fixed the suspend/resume case by calling phylink_start/stop in the resume/suspend helpers. I had to take the rtnl lock to do this, which might be something to discuss.

Antoine Tenart (2):
net: macb: move the Tx and Rx buffer initialization into a function
net: macb: convert to phylink

 drivers/net/ethernet/cadence/Kconfig     |   2 +-
 drivers/net/ethernet/cadence/macb.h      |   9 +-
 drivers/net/ethernet/cadence/macb_main.c | 484 ++++++++++++-----------
 3 files changed, 261 insertions(+), 234 deletions(-)
Signature · 1 line
2.23.0