]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/net/phy/phylink.c
phylink: ensure we report link down when LOS asserted
[mirror_ubuntu-bionic-kernel.git] / drivers / net / phy / phylink.c
index 827f3f92560e711a17514055cb96adfbc05708f7..150cd95a6e1ed64555ee40687ce068b301004e29 100644 (file)
@@ -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)