From: Florian Fainelli <florian.fainelli@broadcom.com>
To: Maxime Chevallier <maxime.chevallier@bootlin.com>, davem@davemloft.net
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-msm@vger.kernel.org, thomas.petazzoni@bootlin.com,
"Andrew Lunn" <andrew@lunn.ch>,
"Jakub Kicinski" <kuba@kernel.org>,
"Eric Dumazet" <edumazet@google.com>,
"Paolo Abeni" <pabeni@redhat.com>,
"Russell King" <linux@armlinux.org.uk>,
linux-arm-kernel@lists.infradead.org,
"Christophe Leroy" <christophe.leroy@csgroup.eu>,
"Herve Codina" <herve.codina@bootlin.com>,
"Heiner Kallweit" <hkallweit1@gmail.com>,
"Vladimir Oltean" <vladimir.oltean@nxp.com>,
"Köry Maincent" <kory.maincent@bootlin.com>,
"Marek Behún" <kabel@kernel.org>,
"Oleksij Rempel" <o.rempel@pengutronix.de>,
"Nicolò Veronese" <nicveronese@gmail.com>,
"Simon Horman" <horms@kernel.org>,
mwojtas@chromium.org, "Antoine Tenart" <atenart@kernel.org>,
devicetree@vger.kernel.org, "Conor Dooley" <conor+dt@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Romain Gantois" <romain.gantois@bootlin.com>,
"Daniel Golle" <daniel@makrotopia.org>,
"Dimitri Fedrau" <dimitri.fedrau@liebherr.com>
Subject: Re: [PATCH net-next v12 00/18] net: phy: Introduce PHY ports representation
Date: Wed, 10 Sep 2025 15:19:28 -0700 [thread overview]
Message-ID: <8015ec3f-778f-43e9-b91d-fe76b814157f@broadcom.com> (raw)
In-Reply-To: <20250909152617.119554-1-maxime.chevallier@bootlin.com>
On 9/9/25 08:25, Maxime Chevallier wrote:
> Hi everyone,
>
> Here is a V12 for the phy_port work, aiming at representing the
> connectors and outputs of PHY devices.
>
> Last round was 16 patches, and now 18, if needed I can split some
> patches out such as the 2 phylink ones.
>
> this V12 address the SFP interface selection for PHY driver SFPs, as
> commented by Russell on v10.
>
> This and Rob's review on the dp83822 patch are the only changes.
>
> As a remainder, a few important notes :
>
> - This is only a first phase. It instantiates the port, and leverage
> that to make the MAC <-> PHY <-> SFP usecase simpler.
>
> - Next phase will deal with controlling the port state, as well as the
> netlink uAPI for that.
>
> - The end-goal is to enable support for complex port MUX. This
> preliminary work focuses on PHY-driven ports, but this will be
> extended to support muxing at the MII level (Multi-phy, or compo PHY
> + SFP as found on Turris Omnia for example).
>
> - The naming is definitely not set in stone. I named that "phy_port",
> but this may convey the false sense that this is phylib-specific.
> Even the word "port" is not that great, as it already has several
> different meanings in the net world (switch port, devlink port,
> etc.). I used the term "connector" in the binding.
>
> A bit of history on that work :
>
> The end goal that I personnaly want to achieve is :
>
> + PHY - RJ45
> |
> MAC - MUX -+ PHY - RJ45
>
> After many discussions here on netdev@, but also at netdevconf[1] and
> LPC[2], there appears to be several analoguous designs that exist out
> there.
>
> [1] : https://netdevconf.info/0x17/sessions/talk/improving-multi-phy-and-multi-port-interfaces.html
> [2] : https://lpc.events/event/18/contributions/1964/ (video isn't the
> right one)
>
> Take the MAchiatobin, it has 2 interfaces that looks like this :
>
> MAC - PHY -+ RJ45
> |
> + SFP - Whatever the module does
>
> Now, looking at the Turris Omnia, we have :
>
>
> MAC - MUX -+ PHY - RJ45
> |
> + SFP - Whatever the module does
>
> We can find more example of this kind of designs, the common part is
> that we expose multiple front-facing media ports. This is what this
> current work aims at supporting. As of right now, it does'nt add any
> support for muxing, but this will come later on.
>
> This first phase focuses on phy-driven ports only, but there are already
> quite some challenges already. For one, we can't really autodetect how
> many ports are sitting behind a PHY. That's why this series introduces a
> new binding. Describing ports in DT should however be a last-resort
> thing when we need to clear some ambiguity about the PHY media-side.
>
> The only use-cases that we have today for multi-port PHYs are combo PHYs
> that drive both a Copper port and an SFP (the Macchiatobin case). This
> in itself is challenging and this series only addresses part of this
> support, by registering a phy_port for the PHY <-> SFP connection. The
> SFP module should in the end be considered as a port as well, but that's
> not yet the case.
>
> However, because now PHYs can register phy_ports for every media-side
> interface they have, they can register the capabilities of their ports,
> which allows making the PHY-driver SFP case much more generic.
>
> Let me know what you think, I'm all in for discussions :)
>
> Regards,
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Tested with bcmgenet which is single MAC + PHY using phylib.
Tested with bcm_sf2 which uses phylink and has a combination of internal
and external PHYs.
--
Florian
--
Florian
next prev parent reply other threads:[~2025-09-10 22:19 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-09 15:25 [PATCH net-next v12 00/18] net: phy: Introduce PHY ports representation Maxime Chevallier
2025-09-09 15:25 ` [PATCH net-next v12 01/18] dt-bindings: net: Introduce the ethernet-connector description Maxime Chevallier
2025-09-09 15:25 ` [PATCH net-next v12 02/18] net: ethtool: common: Indicate that BaseT works on up to 4 lanes Maxime Chevallier
2025-09-09 15:25 ` [PATCH net-next v12 03/18] net: ethtool: Introduce ETHTOOL_LINK_MEDIUM_* values Maxime Chevallier
2025-09-09 15:26 ` [PATCH net-next v12 04/18] net: phy: Introduce PHY ports representation Maxime Chevallier
2025-09-17 6:59 ` Christophe Leroy
2025-09-09 15:26 ` [PATCH net-next v12 05/18] net: phy: dp83822: Add support for phy_port representation Maxime Chevallier
2025-09-17 6:59 ` Christophe Leroy
2025-09-09 15:26 ` [PATCH net-next v12 06/18] dt-bindings: net: dp83822: Deprecate ti,fiber-mode Maxime Chevallier
2025-09-17 7:00 ` Christophe Leroy
2025-09-09 15:26 ` [PATCH net-next v12 07/18] net: phy: Create a phy_port for PHY-driven SFPs Maxime Chevallier
2025-09-09 15:26 ` [PATCH net-next v12 08/18] net: phylink: Move phylink_interface_max_speed to phy_caps Maxime Chevallier
2025-09-17 7:00 ` Christophe Leroy
2025-09-09 15:26 ` [PATCH net-next v12 09/18] net: phylink: Move sfp interface selection and filtering " Maxime Chevallier
2025-09-11 0:59 ` kernel test robot
2025-09-17 7:01 ` Christophe Leroy
2025-09-09 15:26 ` [PATCH net-next v12 10/18] net: phy: Introduce generic SFP handling for PHY drivers Maxime Chevallier
2025-09-09 15:26 ` [PATCH net-next v12 11/18] net: phy: marvell-88x2222: Support SFP through phy_port interface Maxime Chevallier
2025-09-17 7:01 ` Christophe Leroy
2025-09-09 15:26 ` [PATCH net-next v12 12/18] net: phy: marvell: " Maxime Chevallier
2025-09-17 7:02 ` Christophe Leroy
2025-09-09 15:26 ` [PATCH net-next v12 13/18] net: phy: marvell10g: Support SFP through phy_port Maxime Chevallier
2025-09-17 7:02 ` Christophe Leroy
2025-09-09 15:26 ` [PATCH net-next v12 14/18] net: phy: at803x: Support SFP through phy_port interface Maxime Chevallier
2025-09-17 7:02 ` Christophe Leroy
2025-09-09 15:26 ` [PATCH net-next v12 15/18] net: phy: qca807x: " Maxime Chevallier
2025-09-17 7:03 ` Christophe Leroy
2025-09-09 15:26 ` [PATCH net-next v12 16/18] net: phy: Only rely on phy_port for PHY-driven SFP Maxime Chevallier
2025-09-09 15:26 ` [PATCH net-next v12 17/18] net: phy: dp83822: Add SFP support through the phy_port interface Maxime Chevallier
2025-09-09 15:26 ` [PATCH net-next v12 18/18] Documentation: networking: Document the phy_port infrastructure Maxime Chevallier
2025-09-10 10:22 ` [PATCH net-next v12 00/18] net: phy: Introduce PHY ports representation Oleksij Rempel
2025-09-10 22:19 ` Florian Fainelli [this message]
2025-09-17 7:04 ` Christophe Leroy
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=8015ec3f-778f-43e9-b91d-fe76b814157f@broadcom.com \
--to=florian.fainelli@broadcom.com \
--cc=andrew@lunn.ch \
--cc=atenart@kernel.org \
--cc=christophe.leroy@csgroup.eu \
--cc=conor+dt@kernel.org \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=dimitri.fedrau@liebherr.com \
--cc=edumazet@google.com \
--cc=herve.codina@bootlin.com \
--cc=hkallweit1@gmail.com \
--cc=horms@kernel.org \
--cc=kabel@kernel.org \
--cc=kory.maincent@bootlin.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=maxime.chevallier@bootlin.com \
--cc=mwojtas@chromium.org \
--cc=netdev@vger.kernel.org \
--cc=nicveronese@gmail.com \
--cc=o.rempel@pengutronix.de \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=romain.gantois@bootlin.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=vladimir.oltean@nxp.com \
/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