Skip to content

Commit dd1941f

Browse files
Russell King (Oracle)kuba-moo
authored andcommitted
net: txgbe: use phylink_pcs_change() to report PCS link change events
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>
1 parent e47e5e8 commit dd1941f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ irqreturn_t txgbe_link_irq_handler(int irq, void *data)
302302
status = rd32(wx, TXGBE_CFG_PORT_ST);
303303
up = !!(status & TXGBE_CFG_PORT_ST_LINK_UP);
304304

305-
phylink_mac_change(wx->phylink, up);
305+
phylink_pcs_change(&txgbe->xpcs->pcs, up);
306306

307307
return IRQ_HANDLED;
308308
}

0 commit comments

Comments
 (0)