Thread (21 messages) 21 messages, 3 authors, 2026-08-09

Re: [PATCH net-next v11 06/12] net: phylink: support late PCS provider attach

flat view

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-08-09 17:35:23
Also in: linux-devicetree, linux-doc, linux-mediatek, lkml, llvm, netdev

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@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help