1. 27 5月, 2017 2 次提交
  2. 18 5月, 2017 6 次提交
  3. 10 3月, 2017 1 次提交
  4. 03 2月, 2017 2 次提交
  5. 25 1月, 2017 2 次提交
  6. 21 1月, 2017 1 次提交
  7. 11 1月, 2017 1 次提交
    • R
      net: phy: marvell: fix Marvell 88E1512 used in SGMII mode · a13c0652
      Russell King 提交于
      When an Marvell 88E1512 PHY is connected to a nic in SGMII mode, the
      fiber page is used for the SGMII host-side connection.  The PHY driver
      notices that SUPPORTED_FIBRE is set, so it tries reading the fiber page
      for the link status, and ends up reading the MAC-side status instead of
      the outgoing (copper) link.  This leads to incorrect results reported
      via ethtool.
      
      If the PHY is connected via SGMII to the host, ignore the fiber page.
      However, continue to allow the existing power management code to
      suspend and resume the fiber page.
      
      Fixes: 6cfb3bcc ("Marvell phy: check link status in case of fiber link.")
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a13c0652
  8. 02 12月, 2016 1 次提交
  9. 14 11月, 2016 1 次提交
  10. 20 7月, 2016 4 次提交
  11. 29 6月, 2016 1 次提交
  12. 15 6月, 2016 1 次提交
  13. 26 2月, 2016 1 次提交
  14. 20 2月, 2016 1 次提交
    • A
      phy: marvell/micrel: Fix Unpossible condition · 321b4d4b
      Andrew Lunn 提交于
      commit 2b2427d0 ("phy: micrel: Add ethtool statistics counters")
      from Dec 30, 2015, leads to the following static checker
      warning:
      
              drivers/net/phy/micrel.c:609 kszphy_get_stat()
              warn: unsigned 'val' is never less than zero.
      
      drivers/net/phy/micrel.c
         602  static u64 kszphy_get_stat(struct phy_device *phydev, int i)
         603  {
         604          struct kszphy_hw_stat stat = kszphy_hw_stats[i];
         605          struct kszphy_priv *priv = phydev->priv;
         606          u64 val;
         607
         608          val = phy_read(phydev, stat.reg);
         609          if (val < 0) {
                          ^^^^^^^
      Unpossible!
      
         610                  val = UINT64_MAX;
         611          } else {
         612                  val = val & ((1 << stat.bits) - 1);
         613                  priv->stats[i] += val;
         614                  val = priv->stats[i];
         615          }
         616
         617          return val;
         618  }
      
      The same problem exists in the Marvell driver. Fix both.
      
      Fixes: 2b2427d0 ("phy: micrel: Add ethtool statistics counters")
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Reported-by: NJulia.Lawall <julia.lawall@lip6.fr>
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      321b4d4b
  15. 19 2月, 2016 1 次提交
  16. 18 2月, 2016 1 次提交
    • C
      phy: marvell: Fix and unify reg-init behavior · 79be1a1c
      Clemens Gruber 提交于
      For the Marvell 88E1510, marvell_of_reg_init was called too late, in the
      config_aneg function.
      Since commit 113c74d8 ("net: phy: turn carrier off on phy attach"),
      this lead to the link not coming up at boot anymore, due to the phy
      state machine being stuck at waiting for interrupts (off by default on
      the 88E1510).
      For seven other Marvell PHYs, marvell_of_reg_init was not called at all.
      
      Add a generic marvell_config_init function, which in turn calls
      marvell_of_reg_init.
      PHYs, which already have a specific config_init function with a call to
      marvell_of_reg_init, are left untouched. The generic marvell_config_init
      function is called for all the others, to get consistent behavior across
      all Marvell PHYs.
      
      Fixes: 113c74d8 ("net: phy: turn carrier off on phy attach")
      Signed-off-by: NClemens Gruber <clemens.gruber@pqgruber.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      79be1a1c
  17. 08 1月, 2016 2 次提交
  18. 31 12月, 2015 1 次提交
  19. 18 11月, 2015 1 次提交
  20. 26 9月, 2015 1 次提交
  21. 11 8月, 2015 1 次提交
  22. 11 7月, 2015 1 次提交
  23. 27 5月, 2015 1 次提交
  24. 13 11月, 2014 1 次提交
  25. 29 10月, 2014 2 次提交
  26. 25 10月, 2014 1 次提交
  27. 18 12月, 2013 1 次提交