Re: [PATCH net-next v11 06/12] net: phylink: support late PCS provider attach
Andrew Lunn <[email protected]>
| Newsgroups | dev.linux.lists.llvm,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-mediatek,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Andrew