phylink: ensure we report link down when LOS asserted
Subsystems (4)
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.
Signed-off-by Russell King <[email protected]>
--- drivers/net/phy/phylink.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/phy/phylink.c +1 -2
@@ -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
Quoted 4 lines · Russell King
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 <[email protected]>
Reviewed-by Florian Fainelli <[email protected]>
Fixes 9525ae83959b ("phylink: add phylink infrastructure")
Signature · 1 line
Florian
David Miller
maintainerFrom: Russell King <[email protected]>
Date: Tue, 26 Dec 2017 23:15:12 +0000
Quoted 4 lines
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 <[email protected]>
Applied and queued up for -stable.