netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/2] net: macb: convert to phylink
@ 2019-11-13  9:00 Antoine Tenart
  2019-11-13  9:00 ` [PATCH net-next v3 1/2] net: macb: move the Tx and Rx buffer initialization into a function Antoine Tenart
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Antoine Tenart @ 2019-11-13  9:00 UTC (permalink / raw)
  To: davem, linux
  Cc: Antoine Tenart, andrew, alexandre.belloni, nicolas.ferre, netdev,
	thomas.petazzoni, mparab, piotrs, dkangude, ewanm, arthurm,
	stevenh

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(-)

-- 
2.23.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-11-13 19:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-13  9:00 [PATCH net-next v3 0/2] net: macb: convert to phylink Antoine Tenart
2019-11-13  9:00 ` [PATCH net-next v3 1/2] net: macb: move the Tx and Rx buffer initialization into a function Antoine Tenart
2019-11-13  9:20   ` Nicolas.Ferre
2019-11-13  9:00 ` [PATCH net-next v3 2/2] net: macb: convert to phylink Antoine Tenart
2019-11-13 19:46 ` [PATCH net-next v3 0/2] " David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).