Skip to contentSkip to conversation

phylink: ensure we report link down when LOS asserted

PATCH In review Russell King 3 participants 3 messages Dec 26, 2017 – Jan 2, 2018

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 phylink: ensure we report link down when LOS asserted

Although we disable the netdev carrier, we fail to report in the kernel log that the link went down. Fix this.

---
 drivers/net/phy/phylink.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/phy/phylink.c +1 -2
index 827f3f92560e..150cd95a6e1e 100644
@@ -1429,9 +1429,8 @@ static void phylink_sfp_link_down(void *upstream)
 	WARN_ON(!lockdep_rtnl_is_held());
 
 	set_bit(PHYLINK_DISABLE_LINK, &pl->phylink_disable_state);
+	queue_work(system_power_efficient_wq, &pl->resolve);
 	flush_work(&pl->resolve);
-
-	netif_carrier_off(pl->netdev);
 }
 
 static void phylink_sfp_link_up(void *upstream)
Signature · 1 line
2.7.4