Skip to content

Commit e47e5e8

Browse files
Russell King (Oracle)kuba-moo
authored andcommitted
net: prestera: 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/E1s0OGx-009hgr-NP@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 21c8e45 commit e47e5e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/marvell/prestera/prestera_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,15 +821,15 @@ static void prestera_port_handle_event(struct prestera_switch *sw,
821821

822822
if (port->state_mac.oper) {
823823
if (port->phy_link)
824-
phylink_mac_change(port->phy_link, true);
824+
phylink_pcs_change(&port->phylink_pcs, true);
825825
else
826826
netif_carrier_on(port->dev);
827827

828828
if (!delayed_work_pending(caching_dw))
829829
queue_delayed_work(prestera_wq, caching_dw, 0);
830830
} else {
831831
if (port->phy_link)
832-
phylink_mac_change(port->phy_link, false);
832+
phylink_pcs_change(&port->phylink_pcs, false);
833833
else if (netif_running(port->dev) && netif_carrier_ok(port->dev))
834834
netif_carrier_off(port->dev);
835835

0 commit comments

Comments
 (0)