Merge branch 'net-macb-convert-to-phylink'
authorDavid S. Miller <davem@davemloft.net>
Wed, 13 Nov 2019 19:45:42 +0000 (11:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Nov 2019 19:45:42 +0000 (11:45 -0800)
commitf285604a6b6f38bdf4ab025c856c6135ef7bea84
treef1657db519d4941b31f64dccb25c9ec9b1fd4bc8
parentd7eaf962a90bf922c1ea2697933edfeca285a7d7
parent7897b071ac3b45a5788d084fc7f8a8ee9e5f07f0
Merge branch 'net-macb-convert-to-phylink'

Antoine Tenart says:

====================
net: macb: convert to phylink

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.

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.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>