Skip to content

Commit 21c8e45

Browse files
Russell King (Oracle)kuba-moo
authored andcommitted
net: mvneta: 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> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/E1s0OGs-009hgl-Jg@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 45f54a9 commit 21c8e45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/marvell/mvneta.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3259,7 +3259,8 @@ static void mvneta_link_change(struct mvneta_port *pp)
32593259
{
32603260
u32 gmac_stat = mvreg_read(pp, MVNETA_GMAC_STATUS);
32613261

3262-
phylink_mac_change(pp->phylink, !!(gmac_stat & MVNETA_GMAC_LINK_UP));
3262+
phylink_pcs_change(&pp->phylink_pcs,
3263+
!!(gmac_stat & MVNETA_GMAC_LINK_UP));
32633264
}
32643265

32653266
/* NAPI handler

0 commit comments

Comments
 (0)