]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fixed a number of bugs in the PHY Layer
authorAndy Fleming <afleming@freescale.com>
Mon, 16 Oct 2006 21:19:17 +0000 (16:19 -0500)
committerJeff Garzik <jeff@garzik.org>
Sat, 2 Dec 2006 05:12:02 +0000 (00:12 -0500)
commite88318ca2369467f19f678e1911056de65b950b7
tree0217c984a2fe169634931a52b0ebde2d80ecf1ca
parent23bf71581470a43484effc416802cd17c75db060
[PATCH] Fixed a number of bugs in the PHY Layer

* 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: Jeff Garzik <jeff@garzik.org>
drivers/net/phy/phy.c
drivers/net/phy/phy_device.c