1. 06 10月, 2016 1 次提交
  2. 24 8月, 2016 1 次提交
  3. 10 8月, 2016 1 次提交
  4. 01 8月, 2016 1 次提交
  5. 16 7月, 2016 1 次提交
  6. 13 5月, 2016 1 次提交
  7. 02 3月, 2016 2 次提交
  8. 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
  9. 09 1月, 2016 1 次提交
  10. 08 1月, 2016 3 次提交
  11. 31 12月, 2015 1 次提交
  12. 12 12月, 2015 1 次提交
  13. 23 10月, 2015 1 次提交
  14. 08 6月, 2015 3 次提交
  15. 13 5月, 2015 1 次提交
  16. 15 2月, 2015 1 次提交
  17. 27 12月, 2014 1 次提交
  18. 22 11月, 2014 7 次提交
  19. 13 11月, 2014 9 次提交
  20. 15 10月, 2014 1 次提交
    • B
      phy/micrel: KSZ8031RNL RMII clock reconfiguration bug · b838b4ac
      Bruno Thomsen 提交于
      Bug: Unable to send and receive Ethernet packets with Micrel PHY.
      
      Affected devices:
      KSZ8031RNL (commercial temp)
      KSZ8031RNLI (industrial temp)
      
      Description:
      PHY device is correctly detected during probe.
      PHY power-up default is 25MHz crystal clock input
      and output 50MHz RMII clock to MAC.
      Reconfiguration of PHY to input 50MHz RMII clock from MAC
      causes PHY to become unresponsive if clock source is changed
      after Operation Mode Strap Override (OMSO) register setup.
      
      Cause:
      Long lead times on parts where clock setup match circuit design
      forces the usage of similar parts with wrong default setup.
      
      Solution:
      Swapped KSZ8031 register setup and added phy_write return code validation.
      
      Tested with Freescale i.MX28 Fast Ethernet Controler (fec).
      Signed-off-by: NBruno Thomsen <bth@kamstrup.dk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b838b4ac
  21. 11 10月, 2014 1 次提交