Netdev List
 help / color / mirror / Atom feed
* [PATCH net] phylink: ensure we report link down when LOS asserted
@ 2017-12-26 23:15 Russell King
  2017-12-27 19:27 ` Florian Fainelli
  2018-01-02 18:41 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Russell King @ 2017-12-26 23:15 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli; +Cc: netdev

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

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
---
 drivers/net/phy/phylink.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 827f3f92560e..150cd95a6e1e 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -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)
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-02 18:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-26 23:15 [PATCH net] phylink: ensure we report link down when LOS asserted Russell King
2017-12-27 19:27 ` Florian Fainelli
2018-01-02 18:41 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox