|
@@ -1366,8 +1366,8 @@ static int smsc911x_phy_disable_energy_detect(struct smsc911x_data *pdata)
|
|
|
SMSC_WARN(pdata, drv, "Failed writing PHY control reg");
|
|
|
return rc;
|
|
|
}
|
|
|
-
|
|
|
- mdelay(1);
|
|
|
+ /* Allow PHY to wakeup */
|
|
|
+ mdelay(2);
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
@@ -1389,7 +1389,6 @@ static int smsc911x_phy_enable_energy_detect(struct smsc911x_data *pdata)
|
|
|
|
|
|
/* Only enable if energy detect mode is already disabled */
|
|
|
if (!(rc & MII_LAN83C185_EDPWRDOWN)) {
|
|
|
- mdelay(100);
|
|
|
/* Enable energy detect mode for this SMSC Transceivers */
|
|
|
rc = phy_write(pdata->phy_dev, MII_LAN83C185_CTRL_STATUS,
|
|
|
rc | MII_LAN83C185_EDPWRDOWN);
|
|
@@ -1398,8 +1397,6 @@ static int smsc911x_phy_enable_energy_detect(struct smsc911x_data *pdata)
|
|
|
SMSC_WARN(pdata, drv, "Failed writing PHY control reg");
|
|
|
return rc;
|
|
|
}
|
|
|
-
|
|
|
- mdelay(1);
|
|
|
}
|
|
|
return 0;
|
|
|
}
|