diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-04-26 18:18:08 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-04-30 04:04:35 +0200 |
commit | dd1941f801bc958d2ee13f5be8b38db6b034b806 (patch) | |
tree | 858b4bc9824b15cfa0dca3cee8014e4c55d509d4 /drivers/net/ethernet/wangxun | |
parent | net: prestera: use phylink_pcs_change() to report PCS link change events (diff) | |
download | linux-dd1941f801bc958d2ee13f5be8b38db6b034b806.tar.xz linux-dd1941f801bc958d2ee13f5be8b38db6b034b806.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/wangxun')
-rw-r--r-- | drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c b/drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c index 93295916b1d2..5f502265f0a6 100644 --- a/drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c +++ b/drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c @@ -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; } |