Re: [PATCH RFC net-next v2 0/7] net: stmmac: improve PCS support
From: "Russell King (Oracle)" <linux@armlinux.org.uk>
Date: 2026-03-09 11:02:46
Also in:
linux-arm-msm, netdev
On Wed, Mar 04, 2026 at 08:47:36AM +0000, Russell King (Oracle) wrote:
Resending this as the original RFC now conflicts with net-next. This series is the next of the three part series sorting out the PCS support in stmmac, building on part 2, which was posted yesterday: net: stmmac: qcom-ethqos: further serdes reorganisation Similar patches have been posted previously. This series does away with the common SerDes PHY support, instead using a flag to indicate whether 2500Mbps mode is supported (STMMAC_FLAG_SERDES_SUPPORTS_2500M.) At this time, I have no plans to resurect the common SerDes PHY support - the generic PHY layer implementations are just too random to consider that, and I certainly do not want the extra work of fixing that.
I'm intending to tweak this patch series slightly. First, reordering the patches, moving patches 4 and 5 to the beginning of the series, followed by patch 1, 3 and 2. The first two add support for reading the SGMII status from hardware which we don't currently use, then we add support for BASE-X and start using it for 2500BASE-X for qcom-ethqos. This should result in no change at this point. Next, I'm intending to add a new patch which sets plat_dat->mdio_bus_data->default_an_inband = true; which will enable in-band mode, and thus start using the SGMII link state. This will be used where the inband caps indicates both the PHY and PCS suport inband. For 2500BASE-X, because the PCS reports a value of 0x01, that will switch phylink automatically out of inband mode. This should mean that phylink will switch to inband mode for SGMII, and outband for 2500BASE-X, which will eliminate the PCS configuration change done by qcom-ethqos. I've also changed the "report PCS configuration changes" as I suggested, although this should no longer trigger. I'll post this shortly. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!