1. 01 3月, 2013 2 次提交
    • V
      net/phy: micrel: Disable asymmetric pause for KSZ9021 · 32fcafbc
      Vlastimil Kosar 提交于
      Phyter KSZ9021 has hardware bug. If asymmetric pause is enabled,
      then it is necessary to disconnect and then reconnect the ethernet
      cable to get the phyter working. The solution is to disable the
      asymmetric pause.
      Signed-off-by: NVlastimil Kosar <ikosar@fit.vutbr.cz>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      32fcafbc
    • P
      phy: Fix phy_device_free memory leak · b2a43191
      Petr Malat 提交于
      Fix memory leak in phy_device_free() for the case when phy_device*
      returned by phy_device_create() is not registered in the system.
      
      Bug description:
      phy_device_create() sets name of kobject using dev_set_name(), which
      allocates memory using kvasprintf(), but this memory isn't freed if
      the underlying device isn't registered properly, because kobject_cleanup()
      is not called in that case. This can happen (and actually is happening on
      our machines) if phy_device_register(), called by mdiobus_scan(), fails.
      
      Patch description:
      Embedded struct device is initialized in phy_device_create() and it
      counterpart phy_device_free() just drops one reference to the device,
      which leads to proper deinitialization including releasing the kobject
      name memory.
      Signed-off-by: NPetr Malat <oss@malat.biz>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b2a43191
  2. 14 2月, 2013 1 次提交
  3. 13 2月, 2013 1 次提交
  4. 07 2月, 2013 1 次提交
  5. 05 2月, 2013 1 次提交
  6. 29 1月, 2013 2 次提交
  7. 28 1月, 2013 2 次提交
  8. 18 1月, 2013 1 次提交
  9. 15 1月, 2013 1 次提交
  10. 08 12月, 2012 3 次提交
  11. 06 12月, 2012 1 次提交
  12. 04 12月, 2012 1 次提交
  13. 24 11月, 2012 1 次提交
  14. 20 11月, 2012 1 次提交
    • S
      of/net/mdio-gpio: Fix pdev->id issue when using devicetrees. · 3272dd9b
      Srinivas Kandagatla 提交于
      When the mdio-gpio driver is probed via device trees, the platform
      device id is set as -1, However the pdev->id is re-used as bus-id for
      while creating mdio gpio bus.
      So
      For device tree case the mdio-gpio bus name appears as "gpio-ffffffff"
      where as
      for non-device tree case the bus name appears as "gpio-<bus-num>"
      
      Which means the bus_id is fixed in device tree case, so we can't have
      two mdio gpio buses via device trees. Assigning a logical bus number
      via device tree solves the problem and the bus name is much consistent
      with non-device tree bus name.
      
      Without this patch
      1. we can't support two mdio-gpio buses via device trees.
      2. we should always pass gpio-ffffffff as bus name to phy_connect, very
      different to non-device tree bus name.
      
      So, setting up the bus_id via aliases from device tree is the right
      solution and other drivers do similar thing.
      Signed-off-by: NSrinivas Kandagatla <srinivas.kandagatla@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3272dd9b
  15. 16 11月, 2012 1 次提交
    • P
      net: phy: smsc: Re-enable EDPD mode for LAN87xx · 4223dbff
      Patrick Trantham 提交于
      This patch re-enables Energy Detect Power Down (EDPD) mode for the
      LAN8710/LAN8720.  EDPD mode was disabled in a previous commit,
      (b629820d), because it was causing the
      PHY to not be able to detect a link when cold started without a cable
      connected.
      
      The LAN8710/LAN8720 requires a minimum of 2 link pulses within 64ms of
      each other in order to set the ENERGYON bit and exit EDPD mode.  If a
      link partner does send the pulses within this interval, the PHY will
      remained powered down.
      
      This workaround will manually toggle the PHY on/off upon calls to
      read_status in order to generate link test pulses if the link is down.
      If a link partner is present, it will respond to the pulses, which will
      cause the ENERGYON bit to be set and will cause the EDPD mode to be
      exited.
      Signed-off-by: NPatrick Trantham <patrick.trantham@fuel7.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4223dbff
  16. 15 11月, 2012 2 次提交
  17. 10 11月, 2012 1 次提交
  18. 03 11月, 2012 1 次提交
  19. 19 10月, 2012 1 次提交
  20. 10 10月, 2012 1 次提交
  21. 28 9月, 2012 2 次提交
  22. 25 9月, 2012 2 次提交
    • M
      phy/micrel: Rename KS80xx to KSZ80xx · 510d573f
      Marek Vasut 提交于
      There is no such part as KS8001, KS8041 or KS8051. There are only
      KSZ8001, KSZ8041 and KSZ8051. Rename these parts as such to match
      the Micrel naming.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: David J. Choi <david.choi@micrel.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
      Cc: Linux ARM kernel <linux-arm-kernel@lists.infradead.org>
      Cc: Fabio Estevam <fabio.estevam@freescale.com>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      510d573f
    • M
      phy/micrel: Implement support for KSZ8021 · 212ea99a
      Marek Vasut 提交于
      The KSZ8021 PHY was previously caught by KS8051, which is not correct.
      This PHY needs additional setup if it is strapped for address 0. In such
      case an reserved bit must be written in the 0x16, "Operation Mode Strap
      Override" register. According to the KS8051 datasheet, that bit means
      "PHY Address 0 in non-broadcast" and it indeed behaves as such on KSZ8021.
      The issue where the ethernet controller (Freescale FEC) did not communicate
      with network is fixed by writing this bit as 1.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: David J. Choi <david.choi@micrel.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      212ea99a
  23. 23 9月, 2012 2 次提交
  24. 08 9月, 2012 1 次提交
  25. 31 8月, 2012 2 次提交
  26. 23 8月, 2012 1 次提交
    • A
      mdio: translation of MMD EEE registers to/from ethtool settings · b32607dd
      Allan, Bruce W 提交于
      The helper functions which translate IEEE MDIO Manageable Device (MMD)
      Energy-Efficient Ethernet (EEE) registers 3.20, 7.60 and 7.61 to and from
      the comparable ethtool supported/advertised settings will be needed by
      drivers other than those in PHYLIB (e.g. e1000e in a follow-on patch).
      
      In the same fashion as similar translation functions in linux/mii.h, move
      these functions from the PHYLIB core to the linux/mdio.h header file so the
      code will not have to be duplicated in each driver needing MMD-to-ethtool
      (and vice-versa) translations.  The function and some variable names have
      been renamed to be more descriptive.
      
      Not tested on the only hardware that currently calls the related functions,
      stmmac, because I don't have access to any.  Has been compile tested and
      the translations have been tested on a locally modified version of e1000e.
      Signed-off-by: NBruce Allan <bruce.w.allan@intel.com>
      Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b32607dd
  27. 20 8月, 2012 1 次提交
  28. 07 8月, 2012 1 次提交
  29. 23 7月, 2012 1 次提交
  30. 17 7月, 2012 1 次提交