Skip to contentSkip to conversation

phylink: ensure we take the link down when phylink_stop() is called

PATCH New Russell King 1 participant 1 message Nov 30, 2017

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

PATCH 4/4 phylink: ensure we take the link down when phylink_stop() is called

Ensure that we tell the MAC to take the link down when phylink_stop() is called, and that this completes prior to phylink_stop() returns.

---
 drivers/net/phy/phylink.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/phylink.c +1 -0
index e3bbc70372d3..5dc9668dde34 100644
@@ -773,6 +773,7 @@ void phylink_stop(struct phylink *pl)
 		sfp_upstream_stop(pl->sfp_bus);
 
 	set_bit(PHYLINK_DISABLE_STOPPED, &pl->phylink_disable_state);
+	queue_work(system_power_efficient_wq, &pl->resolve);
 	flush_work(&pl->resolve);
 }
 EXPORT_SYMBOL_GPL(phylink_stop);
Signature · 1 line
2.7.4