From: Oleksij Rempel <o.rempel@pengutronix.de>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Maxime Chevallier <maxime.chevallier@bootlin.com>,
Jakub Kicinski <kuba@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
Donald Hunter <donald.hunter@gmail.com>,
Jonathan Corbet <corbet@lwn.net>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
Kory Maincent <kory.maincent@bootlin.com>,
Nishanth Menon <nm@ti.com>,
kernel@pengutronix.de, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, UNGLinuxDriver@microchip.com,
linux-doc@vger.kernel.org, Michal Kubecek <mkubecek@suse.cz>,
Roan van Dijk <roan@protonic.nl>
Subject: Re: [PATCH net-next v2 5/5] net: phy: dp83td510: add MSE interface support for 10BASE-T1L
Date: Wed, 20 Aug 2025 14:26:06 +0200 [thread overview]
Message-ID: <aKW-3sF2g2QrKDpG@pengutronix.de> (raw)
In-Reply-To: <94745663-b68c-4a4c-95d8-36933c305e34@lunn.ch>
On Wed, Aug 20, 2025 at 02:11:57PM +0200, Andrew Lunn wrote:
> > > The doc in patch 1 says :
> > >
> > > > + * Link-wide mode:
> > > > + * - Some PHYs only expose a link-wide aggregate MSE, or cannot map their
> > > > + * measurement to a specific channel/pair (e.g. 100BASE-TX when MDI/MDI-X
> > > > + * resolution is unknown). In that case, callers must use the LINK selector.
> > >
> > > The way I understand that is that PHYs will report either channel-specific values or
> > > link-wide values. Is that correct or are both valid ? In BaseT1 this is the same thing,
> > > but maybe for consistency, we should report either channel values or link-wide values ?
> >
> > for 100Base-T1 the LINK and channel-A selectors are effectively the
> > same, since the PHY only has a single channel. In this case both are
> > valid, and the driver will return the same answer for either request.
> >
> > I decided to expose both for consistency:
> > - on one side, the driver already reports pair_A information for the
> > cable test, so it makes sense to allow channel-A here as well;
> > - on the other side, if a caller such as a generic link-status/health
> > request asks for LINK, we can also provide that without special
> > casing.
> >
> > So the driver just answers what it can. For this PHY, LINK and
> > channel-A map to the same hardware register, and all other selectors
> > return -EOPNOTSUPP.
>
> The document you referenced explicitly says it is for 100BASE-T1. Are
> there other Open Alliance documents which extend the concept to -T2
> and -T4 links? Do you have access to -T2 or -T4 PHYs which implement
> the concept for multiple pairs?
So far I know, following T2/T4 PHYs support MSE:
LAN8830, KSZ9131, LAN8831, LAN8840, LAN8841
DP83826*, DP83640, DP83867*, DP83869HM
I have access at least to LAN8841.
> I think it is good you are thinking about the API, how it could work
> with -T2 and -T4, but do we need this complexity now?
Hm.. I just fear to make same mistake as I did with SQI. So, I analyzed
as many datasheets as possible.
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2025-08-20 12:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-15 6:35 [PATCH net-next v2 0/5] ethtool: introduce PHY MSE diagnostics UAPI and drivers Oleksij Rempel
2025-08-15 6:35 ` [PATCH net-next v2 1/5] ethtool: introduce core UAPI and driver API for PHY MSE diagnostics Oleksij Rempel
2025-08-20 3:03 ` Andrew Lunn
2025-08-20 4:44 ` Oleksij Rempel
2025-08-15 6:35 ` [PATCH net-next v2 2/5] ethtool: netlink: add ETHTOOL_MSG_MSE_GET and wire up PHY MSE access Oleksij Rempel
2025-08-15 6:35 ` [PATCH net-next v2 3/5] ethtool: netlink: add lightweight MSE reporting to LINKSTATE_GET Oleksij Rempel
2025-08-19 2:35 ` Jakub Kicinski
2025-08-15 6:35 ` [PATCH net-next v2 4/5] net: phy: micrel: add MSE interface support for KSZ9477 family Oleksij Rempel
2025-08-15 6:35 ` [PATCH net-next v2 5/5] net: phy: dp83td510: add MSE interface support for 10BASE-T1L Oleksij Rempel
2025-08-18 8:15 ` Maxime Chevallier
2025-08-18 9:20 ` Oleksij Rempel
2025-08-20 12:11 ` Andrew Lunn
2025-08-20 12:26 ` Oleksij Rempel [this message]
2025-08-20 13:32 ` Andrew Lunn
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=aKW-3sF2g2QrKDpG@pengutronix.de \
--to=o.rempel@pengutronix.de \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew@lunn.ch \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=donald.hunter@gmail.com \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=horms@kernel.org \
--cc=kernel@pengutronix.de \
--cc=kory.maincent@bootlin.com \
--cc=kuba@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=maxime.chevallier@bootlin.com \
--cc=mkubecek@suse.cz \
--cc=netdev@vger.kernel.org \
--cc=nm@ti.com \
--cc=pabeni@redhat.com \
--cc=roan@protonic.nl \
/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
all inboxes | Powered by JetHome®