aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/phy/mv88e61xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/phy/mv88e61xx.c')
-rw-r--r--drivers/net/phy/mv88e61xx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy/mv88e61xx.c
index ea54a15..c1e2860 100644
--- a/drivers/net/phy/mv88e61xx.c
+++ b/drivers/net/phy/mv88e61xx.c
@@ -945,14 +945,14 @@ static int mv88e61xx_phy_config(struct phy_device *phydev)
continue;
}
- res = genphy_config_aneg(phydev);
+ res = phy_reset(phydev);
if (res < 0) {
- printf("Error setting PHY %i autoneg\n", i);
+ printf("Error resetting PHY %i\n", i);
continue;
}
- res = phy_reset(phydev);
+ res = genphy_config_aneg(phydev);
if (res < 0) {
- printf("Error resetting PHY %i\n", i);
+ printf("Error setting PHY %i autoneg\n", i);
continue;
}