net: mv88e61xx: fix autonegotiation on ports
phy_reset should be called before autoneg is setup The only boards using MV88E61XX_SWITCH are: - alliedtelesis/SBx81LIFKW - alliedtelesis/SBx81LIFXCAT - gateworks/gw_ventana Cc: Chris Packham <chris.packham@alliedtelesis.co.nz> Signed-off-by: Tim Harvey <tharvey@gateworks.com> Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
This commit is contained in:
parent
2dd652e665
commit
69280961d7
1 changed files with 5 additions and 5 deletions
|
@ -945,16 +945,16 @@ static int mv88e61xx_phy_config(struct phy_device *phydev)
|
|||
continue;
|
||||
}
|
||||
|
||||
res = genphy_config_aneg(phydev);
|
||||
if (res < 0) {
|
||||
printf("Error setting PHY %i autoneg\n", i);
|
||||
continue;
|
||||
}
|
||||
res = phy_reset(phydev);
|
||||
if (res < 0) {
|
||||
printf("Error resetting PHY %i\n", i);
|
||||
continue;
|
||||
}
|
||||
res = genphy_config_aneg(phydev);
|
||||
if (res < 0) {
|
||||
printf("Error setting PHY %i autoneg\n", i);
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Return success if any PHY succeeds */
|
||||
ret = 0;
|
||||
|
|
Loading…
Reference in a new issue