From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 836C5C3DA7F for ; Fri, 2 Aug 2024 19:31:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References: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:List-Owner; bh=4bmxVMwcC7El7dkuub8GoTScaOOhQldmD5XLu9UZMmo=; b=1I1kN0JX06rR2DX7KPU117E0ES ucnTEZnYPwX3V+lTWuyK+Qmb3zCfihjSvt+t0agBjUYoRf0q9FJxAqLaLEIpi8gA9La5vK/uO5AFy tjZQp5HoTvpBCltnalNPYOKbVEdmCqW5feR0rdrw+1DTIW2702EhwwYNUmvtlslmoRd1FVAbAIY/S IYjC5vT/ioY8Aoj6lY458jBh9iAP0ck6bNvpowl5e56gVIRcuolmTlLlZtYDo5IdFw3WvtY29kKrW lyD7RXJpsUTkxjpYkiz0o0HQZsXcn27kuUklmGbTBVIuFso7jGyT+o3yj03EomSAyARS13xjBn2Ew tZaEm1ng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZxzL-00000009sJl-03tX; Fri, 02 Aug 2024 19:30:55 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZxtl-00000009qcC-0GlK for linux-arm-kernel@lists.infradead.org; Fri, 02 Aug 2024 19:25:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References: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:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4bmxVMwcC7El7dkuub8GoTScaOOhQldmD5XLu9UZMmo=; b=V5bTjSRzYRz9FuEfIMzCZKHn/i QfusxZXY+z2IYAkons/wyW9sPeUz/VNX61lejxEflqnirN9QF/XFyp2xXAqLaKdmPe9sIN4IeLBDP xUjpE1Moc65cC1Myz2zs9cySn5ncCT1lkGMifudtfB8+DymqZs5w+Pw54MKAYRXCnvTwev5kvye4j 6qPCubd0uVB0uFEXHKI8KV4cCxrL+RSOaz17W0B8cfd0n4pmqE26Sl4e3KwgsEXON08Qjxo6a/7Sf EV+XmU7MojDFm3jWoqoQLDxKMgRkOYoTMrhZQyQU6u0x56aZAT9a+NnRWn5s9v6+MciqlIofoeOJ+ XIlPDlaw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:53074) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sZxrN-0007Xh-0r; Fri, 02 Aug 2024 20:22:41 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1sZxrP-0008GY-2W; Fri, 02 Aug 2024 20:22:43 +0100 Date: Fri, 2 Aug 2024 20:22:42 +0100 From: "Russell King (Oracle)" To: Andrew Halaney Cc: Serge Semin , Alexandre Torgue , Alexei Starovoitov , bpf@vger.kernel.org, Daniel Borkmann , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Jose Abreu , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Maxime Coquelin , netdev@vger.kernel.org, Paolo Abeni , Vinod Koul Subject: Re: [PATCH net-next 13/14] net: stmmac: remove obsolete pcs methods and associated code Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240802_122509_131401_8FB327CD X-CRM114-Status: GOOD ( 18.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Aug 02, 2024 at 02:02:25PM -0500, Andrew Halaney wrote: > On Fri, Aug 02, 2024 at 11:47:32AM GMT, Russell King (Oracle) wrote: > > The pcs_ctrl_ane() method is no longer required as this will be handled > > by the mac_pcs phylink_pcs instance. Remove these methods, their common > > implementation, the pcs_link, pcs_duplex and pcs_speed members of > > struct stmmac_extra_stats, and stmmac_has_mac_phylink_select_pcs(). > > > > Signed-off-by: Russell King (Oracle) > > ... > > > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c > > index 3c8ae3753205..799af80024d2 100644 > > --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c > > +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c > > @@ -321,48 +321,6 @@ static int stmmac_ethtool_get_link_ksettings(struct net_device *dev, > > { > > struct stmmac_priv *priv = netdev_priv(dev); > > > > - if (!(priv->plat->flags & STMMAC_FLAG_HAS_INTEGRATED_PCS) && > > This change effectively makes the INTEGRATED_PCS flag useless, I think > we should remove it entirely. I'm hoping the ethqos folk are going to test this patch series and tell me whether it works for them - specifically Sneh Shah who added net: stmmac: dwmac-qcom-ethqos: Add support for 2.5G SGMII which directly configures the PCS bypassing phylink. Specifically, if this in stmmac_check_pcs_mode(): priv->dma_cap.pcs && interface == PHY_INTERFACE_MODE_SGMII is true for this device, then we may be in for problems. Since priv->dma_cap.pcs comes from hardware, it's impossible to tell unless one has that hardware. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!