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>
This commit is contained in:
parent
e47e5e85da
commit
dd1941f801
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue