net: txgbe: use phylink_pcs_change() to report PCS link change events
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 26 Apr 2024 16:18:08 +0000 (17:18 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 30 Apr 2024 02:04:35 +0000 (19:04 -0700)
Use phylink_pcs_change() when reporting changes in PCS link state to
phylink as the interrupts are informing us about changes to the PCS
state.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Acked-by: Jiawen Wu <jiawenwu@trustnetic.com>
Link: https://lore.kernel.org/r/E1s0OH2-009hgx-Qw@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c

index 93295916b1d2b80751637dee4a0006688958c428..5f502265f0a63ea658ca45d003fb8743e3fb8ff7 100644 (file)
@@ -302,7 +302,7 @@ irqreturn_t txgbe_link_irq_handler(int irq, void *data)
        status = rd32(wx, TXGBE_CFG_PORT_ST);
        up = !!(status & TXGBE_CFG_PORT_ST_LINK_UP);
 
-       phylink_mac_change(wx->phylink, up);
+       phylink_pcs_change(&txgbe->xpcs->pcs, up);
 
        return IRQ_HANDLED;
 }