[PATCH net-next v11 06/12] net: phylink: support late PCS provider attach
Andrew Lunn
andrew at lunn.ch
Sun Aug 9 10:35:13 PDT 2026
On Fri, Aug 07, 2026 at 03:12:48PM +0200, Christian Marangi wrote:
> Add support for late PCS provider attachment to a phylink instance.
> Similar to FWNODE_PCS_PROVIDER_DEL, FWNODE_PCS_PROVIDER_ADD is added to
> address the case where a PCS provider is added after a phylink instance is
> created and started.
>
> The PCS notifier will emit the event FWNODE_PCS_PROVIDER_ADD every time
> a new PCS provider is added.
>
> If a related PCS is found, then such PCS is added to the phylink
> instance PCS list.
>
> Then we link the PCS to the phylink instance and we refresh the supported
> interfaces of the phylink instance.
>
> Finally we check if we are in a major_config_failed scenario and trigger
> an interface reconfiguration in the next phylink resolve.
>
> In the example scenario where the link was previously torn down due to
> removal of PCS, the link will be established again as the PCS came back
> and is now available to phylink.
>
> Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
Reviewed-by: Andrew Lunn <andrew at lunn.ch>
Andrew
More information about the linux-arm-kernel
mailing list