From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Andrew Halaney <ahalaney@redhat.com>
Cc: Serge Semin <fancer.lancer@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Alexei Starovoitov <ast@kernel.org>,
bpf@vger.kernel.org, Daniel Borkmann <daniel@iogearbox.net>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
Jesper Dangaard Brouer <hawk@kernel.org>,
John Fastabend <john.fastabend@gmail.com>,
Jose Abreu <joabreu@synopsys.com>,
linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
netdev@vger.kernel.org, Paolo Abeni <pabeni@redhat.com>,
Vinod Koul <vkoul@kernel.org>
Subject: Re: [PATCH net-next 13/14] net: stmmac: remove obsolete pcs methods and associated code
Date: Fri, 2 Aug 2024 20:22:42 +0100 [thread overview]
Message-ID: <Zq0yAjzrpIEhcHBZ@shell.armlinux.org.uk> (raw)
In-Reply-To: <ij562xfhvgxmvpgh2l6rhsvcpi43yvvkvef4wgpjupwusi6uwy@cpnkopeu7cpc>
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) <rmk+kernel@armlinux.org.uk>
>
> ...
>
> > 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!
next prev parent reply other threads:[~2024-08-02 19:23 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-02 10:45 [PATCH RFC v3 0/14] net: stmmac: convert stmmac "pcs" to phylink Russell King (Oracle)
2024-08-02 10:46 ` [PATCH net-next 01/14] net: stmmac: qcom-ethqos: add ethqos_pcs_set_inband() Russell King (Oracle)
2024-08-02 17:55 ` Andrew Halaney
2024-08-02 10:46 ` [PATCH net-next 02/14] net: stmmac: replace ioaddr with stmmac_priv for pcs_set_ane() method Russell King (Oracle)
2024-08-02 18:01 ` Andrew Halaney
2024-08-02 10:46 ` [PATCH net-next 03/14] net: stmmac: remove pcs_get_adv_lp() support Russell King (Oracle)
2024-08-02 18:08 ` Andrew Halaney
2024-08-02 10:46 ` [PATCH net-next 04/14] net: stmmac: add infrastructure for hwifs to provide PCS Russell King (Oracle)
2024-08-02 18:27 ` Andrew Halaney
2024-08-02 10:46 ` [PATCH net-next 05/14] net: stmmac: provide core phylink PCS infrastructure Russell King (Oracle)
2024-08-02 10:46 ` [PATCH net-next 06/14] net: stmmac: dwmac1000: convert sgmii/rgmii "pcs" to phylink Russell King (Oracle)
2024-08-02 10:47 ` [PATCH net-next 07/14] net: stmmac: dwmac1000: move PCS interrupt control Russell King (Oracle)
2024-08-02 10:47 ` [PATCH net-next 08/14] net: stmmac: dwmac4: convert sgmii/rgmii "pcs" to phylink Russell King (Oracle)
2024-08-02 10:47 ` [PATCH net-next 09/14] net: stmmac: dwmac4: move PCS interrupt control Russell King (Oracle)
2024-08-02 10:47 ` [PATCH net-next 10/14] net: stmmac: move dwmac_ctrl_ane() into stmmac_pcs.c Russell King (Oracle)
2024-08-02 18:45 ` Andrew Halaney
2024-08-02 10:47 ` [PATCH net-next 11/14] net: stmmac: pass stmmac_pcs into dwmac_pcs_isr() Russell King (Oracle)
2024-08-02 18:52 ` Andrew Halaney
2024-08-02 10:47 ` [PATCH net-next 12/14] net: stmmac: rename PCS registers Russell King (Oracle)
2024-08-02 10:47 ` [PATCH net-next 13/14] net: stmmac: remove obsolete pcs methods and associated code Russell King (Oracle)
2024-08-02 19:02 ` Andrew Halaney
2024-08-02 19:22 ` Russell King (Oracle) [this message]
2024-08-05 15:07 ` Andrew Halaney
2024-08-02 10:47 ` [PATCH net-next 14/14] net: stmmac: Activate Inband/PCS flag based on the selected iface Russell King
2024-08-02 19:12 ` Andrew Halaney
2024-08-02 19:31 ` Russell King (Oracle)
2024-08-02 19:52 ` [PATCH RFC v3 0/14] net: stmmac: convert stmmac "pcs" to phylink Andrew Halaney
2024-08-02 22:48 ` Jakub Kicinski
2024-08-05 10:11 ` Bartosz Golaszewski
2024-08-05 10:14 ` Bartosz Golaszewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zq0yAjzrpIEhcHBZ@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=ahalaney@redhat.com \
--cc=alexandre.torgue@foss.st.com \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=fancer.lancer@gmail.com \
--cc=hawk@kernel.org \
--cc=joabreu@synopsys.com \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.