From 456a389f594a1a46a2913cf082579a9ceec481eb Mon Sep 17 00:00:00 2001 From: Nathan Whitehorn Date: Tue, 22 Sep 2026 11:09:24 -0400 Subject: [PATCH] net: macb: Poll for link state changes when using the internal PCS. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When used with an offboard transceiver (e.g. an SFP), link state needs to be measured at the PCS rather than an onboard PHY. Poll the link state when the PCS is active to allow the kernel to detect link state changes in this case. Signed-off-by: Nathan Whitehorn Reviewed-by: Théo Lebrun Link: https://patch.msgid.link/20260922151429.23272-2-nwhitehorn@pa.msu.edu Signed-off-by: Jakub Kicinski --- drivers/net/ethernet/cadence/macb_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index e3ee7d1d1263..1b8f6a752b05 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -1025,6 +1025,7 @@ static int macb_mii_probe(struct net_device *netdev) struct macb *bp = netdev_priv(netdev); bp->phylink_sgmii_pcs.ops = &macb_phylink_pcs_ops; + bp->phylink_sgmii_pcs.poll = true; bp->phylink_usx_pcs.ops = &macb_phylink_usx_pcs_ops; bp->phylink_config.dev = &netdev->dev;