mbox series

[net-next,0/2] net: dsa: adjust_link removal

Message ID 20240425185336.2084871-1-florian.fainelli@broadcom.com (mailing list archive)
Headers show
Series net: dsa: adjust_link removal | expand

Message

Florian Fainelli April 25, 2024, 6:53 p.m. UTC
Now that the last in-tree driver (b53) has been converted to PHYLINK, we
can get rid of all of code that catered to working with drivers
implementing only PHYLIB's adjust_link callback.

Florian Fainelli (2):
  net: dsa: Remove fixed_link_update member
  net: dsa: Remove adjust_link paths

 include/net/dsa.h |  11 ----
 net/dsa/dsa.c     |   3 +-
 net/dsa/port.c    | 135 ++++------------------------------------------
 3 files changed, 12 insertions(+), 137 deletions(-)

Comments

Jakub Kicinski April 26, 2024, 2:27 a.m. UTC | #1
On Thu, 25 Apr 2024 11:53:34 -0700 Florian Fainelli wrote:
> Now that the last in-tree driver (b53) has been converted to PHYLINK, we
> can get rid of all of code that catered to working with drivers
> implementing only PHYLIB's adjust_link callback.

more to delete:

net/dsa/port.c:1600:21: warning: variable 'phydev' set but not used [-Wunused-but-set-variable]
 1600 |         struct phy_device *phydev = NULL;
      |                            ^