netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] Remove some unused phylink legacy
@ 2023-07-14  9:11 Russell King (Oracle)
  2023-07-14  9:12 ` [PATCH net-next 1/3] net: dsa: remove legacy_pre_march2020 detection Russell King (Oracle)
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Russell King (Oracle) @ 2023-07-14  9:11 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Alexandre Belloni, AngeloGioacchino Del Regno,
	Arınç ÜNAL, Claudiu Manoil, Daniel Golle,
	David S. Miller, DENG Qingfang, Eric Dumazet, Florian Fainelli,
	Florian Fainelli, Jakub Kicinski, Landen Chao, linux-arm-kernel,
	linux-mediatek, Matthias Brugger, netdev, Paolo Abeni, Sean Wang,
	UNGLinuxDriver, Vladimir Oltean, Woojung Huh

Hi,

I believe we are now in a position where some of the legacy phylink code
can be removed!

I believe that all DSA drivers do not make use of any pre-March 2020
phylink behaviour - all drivers now seem to set legacy_pre_march2020 to
false, and the conditions that DSA sets it to true are no longer
satisifed by any driver.

Moreover, no one uses the .mac_an_restart() method, so this can also be
removed.

 drivers/net/dsa/b53/b53_common.c       |  6 -----
 drivers/net/dsa/lan9303-core.c         |  6 -----
 drivers/net/dsa/microchip/ksz_common.c |  2 --
 drivers/net/dsa/mt7530.c               |  6 -----
 drivers/net/dsa/mv88e6xxx/chip.c       |  4 ----
 drivers/net/dsa/ocelot/felix.c         |  6 -----
 drivers/net/dsa/qca/qca8k-8xxx.c       |  2 --
 drivers/net/dsa/sja1105/sja1105_main.c |  6 -----
 drivers/net/phy/phylink.c              | 22 ++++++++----------
 include/linux/phylink.h                | 12 ----------
 include/net/dsa.h                      |  3 ---
 net/dsa/port.c                         | 41 ----------------------------------
 12 files changed, 9 insertions(+), 107 deletions(-)

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

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

end of thread, other threads:[~2023-07-18  8:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-14  9:11 [PATCH net-next 0/3] Remove some unused phylink legacy Russell King (Oracle)
2023-07-14  9:12 ` [PATCH net-next 1/3] net: dsa: remove legacy_pre_march2020 detection Russell King (Oracle)
2023-07-14 10:14   ` Florian Fainelli
2023-07-17 11:02   ` Vladimir Oltean
2023-07-14  9:12 ` [PATCH net-next 2/3] net: dsa: remove legacy_pre_march2020 from drivers Russell King (Oracle)
2023-07-14 10:14   ` Florian Fainelli
2023-07-17 11:03   ` Vladimir Oltean
2023-07-14  9:12 ` [PATCH net-next 3/3] net: phylink: remove legacy mac_an_restart() method Russell King (Oracle)
2023-07-14 10:15   ` Florian Fainelli
2023-07-18  8:00 ` [PATCH net-next 0/3] Remove some unused phylink legacy patchwork-bot+netdevbpf

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