Re: [PATCH net-next v10 5/9] net: phy: Represent PHY-less SFP modules with phy_port
From: Andrew Lunn
Date: Thu May 14 2026 - 09:55:08 EST
On Wed, May 13, 2026 at 03:05:16PM +0200, Maxime Chevallier wrote:
> Now that the SFP bus infrastructure notifies when PHY-less modules are
> connected, we can create a phy_port to represent it. Instead of letting
> the SFP subsystem handle that, the Bus' upstream is in charge of
> maintaining that phy_port and register it to the topology, as the
> upstream (in this case a phy device) is directly interacting with the
> underlying net_device.
>
> Add a phy_caps helper to get the achievable modes on this module based
> on what the phy_port representing the bus supports.
>
> Signed-off-by: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew