Re: [PATCH net-next v15 06/15] net: phy: Create a phy_port for PHY-driven SFPs

From: Andrew Lunn
Date: Mon Nov 10 2025 - 22:56:48 EST


On Thu, Nov 06, 2025 at 10:47:31AM +0100, Maxime Chevallier wrote:
> Some PHY devices may be used as media-converters to drive SFP ports (for
> example, to allow using SFP when the SoC can only output RGMII). This is
> already supported to some extend by allowing PHY drivers to registers
> themselves as being SFP upstream.
>
> However, the logic to drive the SFP can actually be split to a per-port
> control logic, allowing support for multi-port PHYs, or PHYs that can
> either drive SFPs or Copper.
>
> To that extent, create a phy_port when registering an SFP bus onto a
> PHY. This port is considered a "serdes" port, in that it can feed data
> to anther entity on the link. The PHY driver needs to specify the

another

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew