From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A57592D7D42 for ; Wed, 18 Mar 2026 16:06:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773849977; cv=none; b=p6k9T/JXhdGtZn0TwQsREleRg3NoLfQbI4qcOnPSgCwgn1so9QfsL8ERfqbtNKHwN+u2yHjpb9LivTa41TFAn/KvUFnl6K2E3uA4+EpiOrc2JwiPsSC/5DBwdPlwOrJK22s5SAHI72tiYbzAzAFo9K+Mce33qG8U1KRY8V2IWBc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773849977; c=relaxed/simple; bh=kyutswtgbACdq0vf5h5FKJXrPfOW6y5/NDBFsG6cBHI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=kzMmgnSnOSVbi2nATRHlBK0O4l53zsjGV5MfXNQt+MFWpjYhR5GT4AN7f/qHvum/uwa8WlamV/3r2NlTTwAOxn6mIJGpAqk4olGo65WxhvPUrA7xs55rtsQoSxCIxVdnOm7ll1UZ1Bqii8v+WeuvuIe/Vp6H97EP/NzuV0wiXr4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=x+ArvTIh; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="x+ArvTIh" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Pk5nclcW+6iifoD+wiY2hL2mIge4xLaV5a7mcWnT1EY=; b=x+ArvTIhdWq2+6kaZOZjYe3TYm DXe5hgScMMEUzGWzPg3xECJK6RXUDKzOiYjzY/8U3T53w0ivjclMZ/q3Ppi2DPCryo8Mpa/W3sDDz aMTS3n196VQShi4l3vjiPyXjiacf4JJ3leZbVSoeVyxxIORCppNiZXmsmieOdpI5EpHbskeYGfqnN zfuq48lyznPdb3X/vRk5SCnrMlZs3E+Qhmu0Hh23gq6y/gmbw93oxCWq0/+c+XYTyA1b20YD3Z9wp oM2zjd2eYqLavk7rj3uEm9eHzddmMlRonyugp4mEqpAfzayWOBGmg68BI0tv1AZ5Rj/qtm1x0YWbt vPnyHJFA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:38190) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w2tPB-000000003e2-2F64; Wed, 18 Mar 2026 16:05:57 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.98.2) (envelope-from ) id 1w2tP8-000000007Cp-0Sn6; Wed, 18 Mar 2026 16:05:54 +0000 Date: Wed, 18 Mar 2026 16:05:53 +0000 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Alexandre Torgue , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Mohd Ayaan Anwar , netdev@vger.kernel.org, Paolo Abeni , Vinod Koul Subject: [PATCH net-next v2 maybe? 0/5] net: stmmac: improve PCS support Message-ID: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: Russell King (Oracle) I am losing track of what version we're at, because each time the series is reworked, changing the approach, which changes the patches quite a bit, it makes it difficult. We've gone RFC to non-RFC back to RFC and then to non-RFC again. This series is the next of the three part series sorting out the PCS support in stmmac, building on part 2: 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. Changes from RFC v3: - only set default_an_inband if using SGMII/2500BASE-X mode. Changes from previous non-RFC posting: - add a patch moving default_an_inband to struct plat_stmmacenet_data - only include the first four patches from the previous posting - add pcs_an_restart() support for BASE-X, but only if we have TBI/RTBI support. The reasoning here is that these patches should be safe to merge and should not impact qcom-ethqos in any way. We can then figure out how to work around qcom-ethqos hacks without having to keep re-posting these same patches time and time again. drivers/net/ethernet/stmicro/stmmac/common.h | 4 - drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 4 +- drivers/net/ethernet/stmicro/stmmac/dwmac1000.h | 12 +- .../net/ethernet/stmicro/stmmac/dwmac1000_core.c | 11 +- drivers/net/ethernet/stmicro/stmmac/dwmac4.h | 10 +- drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 10 +- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 13 +- drivers/net/ethernet/stmicro/stmmac/stmmac_pcs.c | 156 ++++++++++++++++++++- drivers/net/ethernet/stmicro/stmmac/stmmac_pcs.h | 14 +- include/linux/stmmac.h | 3 +- 10 files changed, 186 insertions(+), 51 deletions(-) -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!