Re: [PATCH net-next v10 4/9] net: phy: Create SFP phy_port before registering upstream
From: Andrew Lunn
Date: Thu May 14 2026 - 09:46:35 EST
On Wed, May 13, 2026 at 03:05:15PM +0200, Maxime Chevallier wrote:
> When dealing with PHY-driven SFP, we create a phy_port representing the
> SFP bus when we know we have such a bus.
>
> We can move the port creation before registering the sfp upstream ops,
> as long as we know the SFP bus is there. This will allow passing the
> phy_port along with the upstream information to the SFP bus.
>
> Signed-off-by: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew