diff options
author | Andy Fleming <afleming@freescale.com> | 2006-10-16 17:19:17 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-12-02 00:12:02 -0500 |
commit | 6b655529c3d817ed1b69cf2dd29e2c3ce5148a2b (patch) | |
tree | 0217c984a2fe169634931a52b0ebde2d80ecf1ca /drivers/net/phy/phy_device.c | |
parent | 2109f89f3483ff5a05899385ee3fb04d779e9cce (diff) |
[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>
Diffstat (limited to 'drivers/net/phy/phy_device.c')
-rw-r--r-- | drivers/net/phy/phy_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 3bbd5e70c209..2a08b2b62c4c 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c | |||
@@ -427,6 +427,7 @@ int genphy_update_link(struct phy_device *phydev) | |||
427 | 427 | ||
428 | return 0; | 428 | return 0; |
429 | } | 429 | } |
430 | EXPORT_SYMBOL(genphy_update_link); | ||
430 | 431 | ||
431 | /* genphy_read_status | 432 | /* genphy_read_status |
432 | * | 433 | * |