1. 12 8月, 2019 2 次提交
  2. 03 8月, 2019 1 次提交
  3. 13 7月, 2019 1 次提交
  4. 15 6月, 2019 1 次提交
  5. 07 6月, 2019 1 次提交
  6. 31 5月, 2019 1 次提交
  7. 30 5月, 2019 4 次提交
  8. 23 5月, 2019 1 次提交
  9. 05 5月, 2019 1 次提交
    • H
      net: phy: fix phy_validate_pause · b4010af9
      Heiner Kallweit 提交于
      We have valid scenarios where ETHTOOL_LINK_MODE_Pause_BIT doesn't
      need to be supported. Therefore extend the first check to check
      for rx_pause being set.
      
      See also phy_set_asym_pause:
      rx=0 and tx=1: advertise asym pause only
      rx=0 and tx=0: stop advertising both pause modes
      
      The fixed commit isn't wrong, it's just the one that introduced the
      linkmode bitmaps.
      
      Fixes: 3c1bcc86 ("net: ethernet: Convert phydev advertize and supported from u32 to link mode")
      Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b4010af9
  10. 04 5月, 2019 1 次提交
    • H
      net: phy: improve pause handling · 22c0ef6b
      Heiner Kallweit 提交于
      When probing the phy device we set sym and asym pause in the "supported"
      bitmap (unless the PHY tells us otherwise). However we don't know yet
      whether the MAC supports pause. Simply copying phy->supported to
      phy->advertising will trigger advertising pause, and that's not
      what we want. Therefore add phy_advertise_supported() that copies all
      modes but doesn't touch the pause bits.
      
      In phy_support_(a)sym_pause we shouldn't set any bits in the supported
      bitmap because we may set a bit the PHY intentionally disabled.
      Effective pause support should be the AND-combined PHY and MAC pause
      capabilities. If the MAC supports everything, then it's only relevant
      what the PHY supports. If MAC supports sym pause only, then we have to
      clear the asym bit in phydev->supported.
      Copy the pause flags only and don't touch the modes, because a driver
      may have intentionally removed a mode from phydev->advertising.
      Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      22c0ef6b
  11. 29 4月, 2019 1 次提交
  12. 26 4月, 2019 1 次提交
    • H
      net: phy: improve genphy_soft_reset · 8c90b795
      Heiner Kallweit 提交于
      PHY's behave differently when being reset. Some reset registers to
      defaults, some don't. Some trigger an autoneg restart, some don't.
      
      So let's also set the autoneg restart bit when resetting. Then PHY
      behavior should be more consistent. Clearing BMCR_ISOLATE serves the
      same purpose and is borrowed from genphy_restart_aneg.
      
      BMCR holds the speed / duplex settings in fixed mode. Therefore
      we may have an issue if a soft reset resets BMCR to its default.
      So better call genphy_setup_forced() afterwards in fixed mode.
      We've seen no related complaint in the last >10 yrs, so let's
      treat it as an improvement.
      Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8c90b795
  13. 19 4月, 2019 1 次提交
  14. 09 4月, 2019 3 次提交
  15. 05 4月, 2019 1 次提交
  16. 04 4月, 2019 1 次提交
  17. 03 4月, 2019 2 次提交
  18. 02 4月, 2019 1 次提交
  19. 26 3月, 2019 1 次提交
  20. 22 2月, 2019 3 次提交
  21. 18 2月, 2019 1 次提交
  22. 14 2月, 2019 2 次提交
  23. 13 2月, 2019 1 次提交
  24. 11 2月, 2019 1 次提交
  25. 10 2月, 2019 3 次提交
  26. 09 2月, 2019 3 次提交