summaryrefslogtreecommitdiffstats
path: root/drivers/staging/mt7621-eth/mdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/mt7621-eth/mdio.c')
-rw-r--r--drivers/staging/mt7621-eth/mdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/mt7621-eth/mdio.c b/drivers/staging/mt7621-eth/mdio.c
index 7ad0c41..2c6e180 100644
--- a/drivers/staging/mt7621-eth/mdio.c
+++ b/drivers/staging/mt7621-eth/mdio.c
@@ -112,7 +112,7 @@ static void phy_init(struct mtk_eth *eth, struct mtk_mac *mac,
phy->autoneg = AUTONEG_ENABLE;
phy->speed = 0;
phy->duplex = 0;
- phy->supported &= PHY_BASIC_FEATURES;
+ phy_set_max_speed(phy, SPEED_100);
phy->advertising = phy->supported | ADVERTISED_Autoneg;
phy_start_aneg(phy);
OpenPOWER on IntegriCloud