summaryrefslogtreecommitdiff
path: root/drivers/net/phy/micrel.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/phy/micrel.c')
-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;
}