1. 10 2月, 2019 2 次提交
  2. 09 2月, 2019 3 次提交
  3. 25 1月, 2019 2 次提交
  4. 23 1月, 2019 3 次提交
  5. 20 1月, 2019 1 次提交
  6. 19 1月, 2019 4 次提交
  7. 18 1月, 2019 2 次提交
  8. 17 1月, 2019 4 次提交
  9. 19 12月, 2018 2 次提交
  10. 06 12月, 2018 2 次提交
  11. 05 12月, 2018 1 次提交
  12. 04 12月, 2018 4 次提交
  13. 28 11月, 2018 1 次提交
  14. 17 11月, 2018 1 次提交
  15. 12 11月, 2018 4 次提交
  16. 23 10月, 2018 1 次提交
  17. 02 10月, 2018 2 次提交
  18. 27 9月, 2018 1 次提交
    • H
      net: phy: fix WoL handling when suspending the PHY · 93f41e67
      Heiner Kallweit 提交于
      Core of the problem is that phy_suspend() suspends the PHY when it
      should not because of WoL. phy_suspend() checks for WoL already, but
      this works only if the PHY driver handles WoL (what is rarely the case).
      Typically WoL is handled by the MAC driver.
      
      This patch uses new member wol_enabled of struct net_device as
      additional criteria in the check when not to suspend the PHY because
      of WoL.
      
      Last but not least change phy_detach() to call phy_suspend() before
      attached_dev is set to NULL. phy_suspend() accesses attached_dev
      when checking whether the MAC driver activated WoL.
      
      Fixes: f1e911d5 ("r8169: add basic phylib support")
      Fixes: e8cfd9d6 ("net: phy: call state machine synchronously in phy_stop")
      Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      93f41e67