• Andy Fleming's avatar
    [PATCH] Fixed a number of bugs in the PHY Layer · 6b655529
    Andy Fleming authored
    * genphy_update_link is now exported
    * Added a fix from ncase@xes-inc.com which changes forcing so it
      only updates the link.  Otherwise, it never tries the lower
      values, since it is always overwriting the speed/duplex values
      with the current ones, rather than the intended ones.
    * Fixed a bug where bringing up a PHY with no link caused it to
      timeout, and enter forcing mode.  Once in forcing mode,
      plugging in the link didn't autonegotiate.  Now the AN state
      detects the lack of link, and enters the NO_LINK state.  AN
      only times out if the link is up and AN fails
    * Cleaned up the PHY_AN case, reducing one level of indentation
      for the timeout code.
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    6b655529
phy.c 19.6 KB