summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/net/phy/phy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 48e86d76af..4793d073b7 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -409,6 +409,11 @@ int genphy_config(struct phy_device *phydev)
phydev->supported = features;
phydev->advertising = features;
+ if (getenv("disable_giga")) {
+ phydev->advertising &= ~(SUPPORTED_1000baseT_Full |
+ SUPPORTED_1000baseT_Half | SUPPORTED_1000baseX_Full |
+ SUPPORTED_1000baseX_Half);
+ }
genphy_config_aneg(phydev);