linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC net-next v2 0/7] net: dsa: mt7530: updates for phylink changes
@ 2022-02-23 11:33 Russell King (Oracle)
  2022-02-23 11:34 ` [PATCH RFC net-next v2 01/10] net: dsa: mt7530: fix incorrect test in mt753x_phylink_validate() Russell King (Oracle)
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Russell King (Oracle) @ 2022-02-23 11:33 UTC (permalink / raw)
  To: Landen Chao, DENG Qingfang, Sean Wang
  Cc: Andrew Lunn, Vivien Didelot, Florian Fainelli, Vladimir Oltean,
	David S. Miller, Jakub Kicinski, Matthias Brugger, netdev,
	linux-arm-kernel, linux-mediatek

Hi,

This revised series is a partial conversion of the mt7530 DSA driver to
the modern phylink infrastructure. This driver has some exceptional
cases which prevent - at the moment - its full conversion (particularly
with the Autoneg bit) to using phylink_generic_validate().

Patch 1 fixes the incorrect test highlighted in the first RFC series.

Patch 2 fixes the incorrect assumption that RGMII is unable to support
1000BASE-X.

Patch 3 populates the supported_interfaces for each port

Patch 4 removes the interface checks that become unnecessary as a result
of patch 3.

Patch 5 removes use of phylink_helper_basex_speed() which is no longer
required by phylink.

Patch 6 becomes possible after patch 5, only indicating the ethtool
modes that can be supported with a particular interface mode - this
involves removing some modes and adding others as per phylink
documentation.

Patch 7 switches the driver to use phylink_get_linkmodes(), which moves
the driver as close as we can to phylink_generic_validate() due to the
Autoneg bit issue mentioned above.

Patch 8 converts the driver to the phylink pcs support, removing a bunch
of driver private indirected methods. We include TRGMII as a PCS even
though strictly TRGMII does not have a PCS. This is convenient to allow
the change in patch 9 to be made.

Patch 9 moves the special autoneg handling to the PCS validate method,
which means we can convert the MAC side to the generic validator.

Patch 10 marks the driver as non-legacy.

Please review and test, thanks.

 drivers/net/dsa/mt7530.c | 330 +++++++++++++++++++++--------------------------
 drivers/net/dsa/mt7530.h |  26 ++--
 2 files changed, 159 insertions(+), 197 deletions(-)

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-03-03  9:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-23 11:33 [PATCH RFC net-next v2 0/7] net: dsa: mt7530: updates for phylink changes Russell King (Oracle)
2022-02-23 11:34 ` [PATCH RFC net-next v2 01/10] net: dsa: mt7530: fix incorrect test in mt753x_phylink_validate() Russell King (Oracle)
2022-02-23 13:12   ` Vladimir Oltean
2022-02-23 13:21     ` Russell King (Oracle)
2022-02-23 11:34 ` [PATCH RFC net-next v2 02/10] net: dsa: mt7530: 1G can also support 1000BASE-X link mode Russell King (Oracle)
2022-02-23 11:34 ` [PATCH RFC net-next v2 03/10] net: dsa: mt7530: populate supported_interfaces and mac_capabilities Russell King (Oracle)
2022-02-23 11:34 ` [PATCH RFC net-next v2 04/10] net: dsa: mt7530: remove interface checks Russell King (Oracle)
2022-02-23 11:34 ` [PATCH RFC net-next v2 05/10] net: dsa: mt7530: drop use of phylink_helper_basex_speed() Russell King (Oracle)
2022-02-23 11:34 ` [PATCH RFC net-next v2 06/10] net: dsa: mt7530: only indicate linkmodes that can be supported Russell King (Oracle)
2022-02-23 11:34 ` [PATCH RFC net-next v2 07/10] net: dsa: mt7530: switch to use phylink_get_linkmodes() Russell King (Oracle)
2022-02-23 11:34 ` [PATCH RFC net-next v2 08/10] net: dsa: mt7530: partially convert to phylink_pcs Russell King (Oracle)
2022-02-23 11:34 ` [PATCH RFC net-next v2 09/10] net: dsa: mt7530: move autoneg handling to PCS validation Russell King (Oracle)
2022-02-23 11:35 ` [PATCH RFC net-next v2 10/10] net: dsa: mt7530: mark as non-legacy Russell King (Oracle)
2022-03-03  9:21 ` [PATCH RFC net-next v2 0/7] net: dsa: mt7530: updates for phylink changes 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).