Netdev List
 help / color / mirror / Atom feed
From: Vladimir Oltean <olteanv@gmail.com>
To: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
Cc: Andrew Lunn <andrew@lunn.ch>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>,
	Mathew McBride <matt@traverse.com.au>,
	netdev@vger.kernel.org, Paolo Abeni <pabeni@redhat.com>
Subject: Re: [PATCH net 3/3] net: phylink: disable autoneg for interfaces that have no inband
Date: Wed, 3 Sep 2025 01:51:37 +0300	[thread overview]
Message-ID: <20250902225137.6h2ank6itrgeln6w@skbuf> (raw)
In-Reply-To: <E1uslwx-00000001SPB-2kiM@rmk-PC.armlinux.org.uk> <E1uslwx-00000001SPB-2kiM@rmk-PC.armlinux.org.uk>

On Sun, Aug 31, 2025 at 06:34:43PM +0100, Russell King (Oracle) wrote:
> Mathew reports that as a result of commit 6561f0e547be ("net: pcs:
> pcs-lynx: implement pcs_inband_caps() method"), 10G SFP modules no
> longer work with the Lynx PCS.
> 
> This problem is not specific to the Lynx PCS, but is caused by commit
> df874f9e52c3 ("net: phylink: add pcs_inband_caps() method") which added
> validation of the autoneg state to the optical SFP configuration path.
> 
> Fix this by handling interface modes that fundamentally have no
> inband negotiation more correctly - if we only have a single interface
> mode, clear the Autoneg support bit and the advertising mask. If the
> module can operate with several different interface modes, autoneg may
> be supported for other modes, so leave the support mask alone and just
> clear the Autoneg bit in the advertising mask.
> 
> This restores 10G optical module functionality with PCS that supply
> their inband support, and makes ethtool output look sane.
> 
> Reported-by: Mathew McBride <matt@traverse.com.au>
> Closes: https://lore.kernel.org/r/025c0ebe-5537-4fa3-b05a-8b835e5ad317@app.fastmail.com
> Fixes: df874f9e52c3 ("net: phylink: add pcs_inband_caps() method")
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
> ---

Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>

I had missed this discussion and was about to report the same problem as
Mathew again.

  reply	other threads:[~2025-09-02 22:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-31 17:34 [PATCH net 0/3] net: fix optical SFP failures Russell King (Oracle)
2025-08-31 17:34 ` [PATCH net 1/3] net: phy: add phy_interface_weight() Russell King (Oracle)
2025-09-02 21:51   ` Andrew Lunn
2025-08-31 17:34 ` [PATCH net 2/3] net: phylink: provide phylink_get_inband_type() Russell King (Oracle)
2025-09-02 21:52   ` Andrew Lunn
2025-08-31 17:34 ` [PATCH net 3/3] net: phylink: disable autoneg for interfaces that have no inband Russell King (Oracle)
2025-09-02 22:51   ` Vladimir Oltean [this message]
2025-09-08  7:38   ` Ilya K
2025-09-08  7:44     ` Russell King (Oracle)
2025-09-08 17:07       ` Ilya K
2025-09-02 23:30 ` [PATCH net 0/3] net: fix optical SFP failures patchwork-bot+netdevbpf

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=20250902225137.6h2ank6itrgeln6w@skbuf \
    --to=olteanv@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=matt@traverse.com.au \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rmk+kernel@armlinux.org.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox