projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec7681b
)
phylink: ensure we take the link down when phylink_stop() is called
author
Russell King
<
[email protected]
>
Thu, 30 Nov 2017 13:59:26 +0000
(13:59 +0000)
committer
David S. Miller
<
[email protected]
>
Fri, 1 Dec 2017 20:18:42 +0000
(15:18 -0500)
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 <
[email protected]
>
Tested-by: Florian Fainelli <
[email protected]
>
Signed-off-by: Russell King <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/phy/phylink.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/phylink.c
b/drivers/net/phy/phylink.c
index e3bbc70372d3ba73517514c1eda6a861d35d9524..5dc9668dde34fe6b810c48f2bcd63e8609caa74e 100644
(file)
--- a/
drivers/net/phy/phylink.c
+++ b/
drivers/net/phy/phylink.c
@@
-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);