From: Russell King Date: Thu, 30 Nov 2017 13:59:26 +0000 (+0000) Subject: phylink: ensure we take the link down when phylink_stop() is called X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=86659fbb32a5f6d4c97e6f9058bf3f65d7501049;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git phylink: ensure we take the link down when phylink_stop() is called [ Upstream commit 2012b7d6b2868c532f22d9172c8b24611637eb48 ] 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. Reported-by: Florian Fainelli Tested-by: Florian Fainelli Signed-off-by: Russell King Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index cb85307f125b..1b2fe74a44ea 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -772,6 +772,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);