netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] Remove legacy phylink behaviour
@ 2023-07-21 11:33 Russell King (Oracle)
  2023-07-21 11:34 ` [PATCH net-next 1/4] net: ethernet: mtk_eth_soc: remove incorrect PLL configuration Russell King (Oracle)
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Russell King (Oracle) @ 2023-07-21 11:33 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit, DanielGolle,
	Arınç ÜNAL, Frank Wunderlich, David Woodhouse
  Cc: AngeloGioacchino Del Regno, David S. Miller, Eric Dumazet,
	Felix Fietkau, Jakub Kicinski, John Crispin, linux-arm-kernel,
	linux-mediatek, Lorenzo Bianconi, Mark Lee, Matthias Brugger,
	netdev, Paolo Abeni, Sean Wang

Hi,

This series removes the - as far as I can tell - unreachable code in
mtk_eth_soc that relies upon legacy phylink behaviour, and then removes
the support in phylink for this legacy behaviour.

Patch 1 removes the clocking configuration from mtk_eth_soc for non-
TRGMII, non-serdes based interface modes, and disables those interface
modes prior to phylink configuration.

Patch 2 removes the mac_pcs_get_state() method from mtk_eth_soc which
I believe is also not used - mtk_eth_soc appears not to be used with
SFPs (which would use a kind of in-band mode) nor does any DT appear
to specify in-band mode for any non-serdes based interface mode.

With both of those dealt with, the kernel is now free of any driver
relying on the phylink legacy mode. Therefore, patch 3 removes support
for this.

Finally, with the advent of a new driver being submitted today that
makes use of state->speed in the mac_config() path, patch 4 ensures that
any phylink_link_state member that should not be used in mac_config is
either cleared or set to an invalid value.

 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 94 +++++------------------------
 drivers/net/ethernet/mediatek/mtk_eth_soc.h |  1 +
 drivers/net/phy/phylink.c                   | 48 ++++++---------
 include/linux/phylink.h                     | 45 ++------------
 4 files changed, 42 insertions(+), 146 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] 14+ messages in thread

end of thread, other threads:[~2023-07-22 20:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-21 11:33 [PATCH net-next 0/4] Remove legacy phylink behaviour Russell King (Oracle)
2023-07-21 11:34 ` [PATCH net-next 1/4] net: ethernet: mtk_eth_soc: remove incorrect PLL configuration Russell King (Oracle)
2023-07-21 11:34 ` [PATCH net-next 2/4] net: ethernet: mtk_eth_soc: remove mac_pcs_get_state and modernise Russell King (Oracle)
2023-07-21 11:34 ` [PATCH net-next 3/4] net: phylink: strip out pre-March 2020 legacy code Russell King (Oracle)
2023-07-21 11:34 ` [PATCH net-next 4/4] net: phylink: explicitly invalidate link_state members in mac_config Russell King (Oracle)
2023-07-21 16:38 ` [PATCH net-next 0/4] Remove legacy phylink behaviour Russell King (Oracle)
2023-07-21 22:40 ` Daniel Golle
2023-07-22 12:31   ` Aw: " Frank Wunderlich
2023-07-22 12:43     ` Daniel Golle
2023-07-22 16:14     ` Russell King (Oracle)
2023-07-22 18:00       ` Aw: " Frank Wunderlich
2023-07-22 19:40         ` Russell King (Oracle)
2023-07-22 20:32 ` [PATCH net-next 1/4] net: ethernet: mtk_eth_soc: remove incorrect PLL configuration Russell King (Oracle)
2023-07-22 20:32 ` [PATCH net-next 2/4] net: ethernet: mtk_eth_soc: remove mac_pcs_get_state and modernise Russell King (Oracle)

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