summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2013-07-03 13:49:11 -0700
committerTroy Kisky <troy.kisky@boundarydevices.com>2013-07-03 13:57:00 -0700
commitcaa40ee3aecb45fcb4960726cfebc4a9bd2564cf (patch)
treee4a05301b1dbe87f5278b3b23bec699393210f3e
parente9b72b48b9df07f020ac5ffd9999ccbd6b5fc8e6 (diff)
ksz9031: fix disable_giga
-rw-r--r--drivers/net/phy/micrel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
index a07b00bab80..5e46625a8a0 100644
--- a/drivers/net/phy/micrel.c
+++ b/drivers/net/phy/micrel.c
@@ -163,10 +163,11 @@ static int ksz9031_config(struct phy_device *phydev)
{
unsigned features = phydev->drv->features;
+ phydev->supported = features;
if (getenv("disable_giga"))
features &= ~(SUPPORTED_1000baseT_Half |
SUPPORTED_1000baseT_Full);
- phydev->advertising = phydev->supported = features;
+ phydev->advertising = features;
genphy_config_aneg(phydev);
return 0;
}