From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Sergio Palumbo <palumbo.ser@outlook.it>
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>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next] net: sfp: add quirk for OEM DFP-34X-2C2 GPON ONU SFP
Date: Sat, 17 Feb 2024 10:28:20 +0000 [thread overview]
Message-ID: <ZdCKRIJfRWkDCs/n@shell.armlinux.org.uk> (raw)
In-Reply-To: <AS1PR03MB8189ADFF1A475AE7DB281BE782532@AS1PR03MB8189.eurprd03.prod.outlook.com>
On Sat, Feb 17, 2024 at 11:13:14AM +0100, Sergio Palumbo wrote:
> [ 15.459629] sfp sfp-1: module OEM DFP-34X-2C2 rev sn XPONxxxxxxxx dc 230912
> [ 15.469121] mtk_soc_eth 15100000.ethernet eth1: requesting link mode inband/2500base-x with support 0000000,00000200,0000e440
> [ 15.509967] sfp sfp-2: module rev 1.0 sn 2307210038 dc 230721
> [ 15.519434] mt7530-mdio mdio-bus:1f sfp2: requesting link mode inband/2500base-x with support 0000000,00000000,0000e440
> [ 24.360320] mt7530-mdio mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
> [ 24.368145] mt7530-mdio mdio-bus:1f sfp2: major config 2500base-x
> [ 24.374258] mt7530-mdio mdio-bus:1f sfp2: phylink_mac_config: mode=inband/2500base-x/Unknown/Unknown adv=0000000,00000000,0000e440 pause=04 link=0 an=1
> [ 24.389679] br-lan: port 5(sfp2) entered blocking state
> [ 24.394948] br-lan: port 5(sfp2) entered disabled state
> [ 24.402405] device sfp2 entered promiscuous mode
This shows that the interface has been configured for 2500base-X.
However, there is no link report.
> A stated by you the system is still connecting at 2500base-X even if the
> module is set for 1000base-X, as far as I can see, without any error.
Right, because, as I've said many times, the kernel has *no* idea that
the module internals has been configured to operate at 1000base-X.
> My assumption that the module could have forced the speed down to
> 1000base-X was completely wrong.
Correct - considering that I wrote all this code, it is insulting to
have to go to this extent to get the point across.
So now that we have agreement that the kernel is trying to use
2500base-X, you now need to get off your high horse and accept that
it isn't working because there is _no_ _link_ with the module.
In other words, you need to accept that I'm right and you're wrong.
--
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-02-17 10:28 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-28 14:06 [PATCH net-next] net: sfp: add quirk for OEM DFP-34X-2C2 GPON ONU SFP Sergio Palumbo
2024-01-28 14:42 ` Russell King (Oracle)
2024-02-02 17:41 ` Sergio Palumbo
2024-02-02 18:01 ` Russell King (Oracle)
2024-02-02 23:18 ` Sergio Palumbo
2024-02-02 23:45 ` Russell King (Oracle)
2024-02-03 9:16 ` Sergio Palumbo
[not found] ` <f8cf41f2-4a90-4ef5-b214-906319bd82d4@outlook.it>
2024-02-05 18:55 ` Sergio Palumbo
2024-02-06 14:15 ` Russell King (Oracle)
2024-02-08 8:30 ` Sergio Palumbo
2024-02-08 9:07 ` Russell King (Oracle)
2024-02-08 14:00 ` Sergio Palumbo
2024-02-08 15:28 ` Russell King (Oracle)
2024-02-08 16:19 ` Sergio Palumbo
2024-02-08 16:28 ` Russell King (Oracle)
2024-02-08 17:21 ` Sergio Palumbo
2024-02-17 10:13 ` Sergio Palumbo
2024-02-17 10:28 ` Russell King (Oracle) [this message]
2024-02-17 11:28 ` Sergio Palumbo
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=ZdCKRIJfRWkDCs/n@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=palumbo.ser@outlook.it \
/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;
as well as URLs for NNTP newsgroup(s).