1. 29 1月, 2016 1 次提交
  2. 22 1月, 2016 3 次提交
    • T
      net: phy: smsc: Fix disabling energy detect mode · 0a9c453e
      Teresa Remmet 提交于
      When the lan87xx_read_status function is getting called the
      energy detect mode is enabled again even if it has been
      disabled by device tree.
      
      Added private struct to check the energy detect status.
      Signed-off-by: NTeresa Remmet <t.remmet@phytec.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0a9c453e
    • F
      net: phy: Fix phy_mac_interrupt() · deccd16f
      Florian Fainelli 提交于
      Commit 5ea94e76 ("phy: add phy_mac_interrupt()") to use with
      PHY_IGNORE_INTERRUPT added a cancel_work_sync() into phy_mac_interrupt()
      which is allowed to sleep, whereas phy_mac_interrupt() is expected to be
      callable from interrupt context.
      
      Now that we have fixed how the PHY state machine treats
      PHY_IGNORE_INTERRUPT with respect to state changes, we can just set the
      new link state, and queue the PHY state machine for execution so it is
      going to read the new link state.
      
      For that to work properly, we need to update phy_change() not to try to
      invoke any interrupt callbacks if we have configured the PHY device for
      PHY_IGNORE_INTERRUPT, because that PHY device and its driver are not
      required to implement those.
      
      Fixes: 5ea94e76 ("phy: add phy_mac_interrupt() to use with PHY_IGNORE_INTERRUPT")
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      deccd16f
    • F
      net: phy: Avoid polling PHY with PHY_IGNORE_INTERRUPTS · d5c3d846
      Florian Fainelli 提交于
      Commit 2c7b4921 ("phy: fix the use of PHY_IGNORE_INTERRUPT") changed
      a hunk in phy_state_machine() in the PHY_RUNNING case which was not
      needed. The change essentially makes the PHY library treat PHY devices
      with PHY_IGNORE_INTERRUPT to keep polling for the PHY device, even
      though the intent is not to do it.
      
      Fix this by reverting that specific hunk, which makes the PHY state
      machine wait for state changes, and stay in the PHY_RUNNING state for as
      long as needed.
      
      Fixes: 2c7b4921 ("phy: fix the use of PHY_IGNORE_INTERRUPT")
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d5c3d846
  3. 21 1月, 2016 1 次提交
  4. 18 1月, 2016 4 次提交
  5. 16 1月, 2016 1 次提交
    • S
      net: phy: turn carrier off on phy attach · 113c74d8
      Sjoerd Simons 提交于
      The operstate of a networking device initially IF_OPER_UNKNOWN aka
      "unknown", updated on carrier state changes (with carrier state being on
      by default). This means it will stay unknown unless the carrier state
      goes to off at some point, which is not the case if the phy is already
      up/connected at startup.
      
      Explicitly turn off the carrier on phy attach, leaving the phy state
      machine to turn the carrier on when it has done the initial negotiation.
      Signed-off-by: NSjoerd Simons <sjoerd.simons@collabora.co.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      113c74d8
  6. 13 1月, 2016 2 次提交
  7. 11 1月, 2016 1 次提交
  8. 09 1月, 2016 1 次提交
  9. 08 1月, 2016 16 次提交
  10. 31 12月, 2015 2 次提交
  11. 15 12月, 2015 1 次提交
  12. 12 12月, 2015 1 次提交
  13. 07 12月, 2015 1 次提交
  14. 04 12月, 2015 1 次提交
  15. 26 11月, 2015 1 次提交
  16. 24 11月, 2015 1 次提交
  17. 18 11月, 2015 2 次提交