generic: ar8216: move sleep out of the loop
It is enough to sleep once after ANEG is enabled on all PHYs. This reduces boot time on boards with AR8316 switch. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35532
This commit is contained in:
parent
8f54ec7ce7
commit
de123c4409
1 changed files with 2 additions and 1 deletions
|
@ -833,9 +833,10 @@ ar8316_hw_init(struct ar8216_priv *priv)
|
||||||
ADVERTISE_ALL | ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM);
|
ADVERTISE_ALL | ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM);
|
||||||
mdiobus_write(bus, i, MII_CTRL1000, ADVERTISE_1000FULL);
|
mdiobus_write(bus, i, MII_CTRL1000, ADVERTISE_1000FULL);
|
||||||
mdiobus_write(bus, i, MII_BMCR, BMCR_RESET | BMCR_ANENABLE);
|
mdiobus_write(bus, i, MII_BMCR, BMCR_RESET | BMCR_ANENABLE);
|
||||||
msleep(1000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
msleep(1000);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
priv->initialized = true;
|
priv->initialized = true;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue