diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-02-09 13:26:04 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-02-09 13:26:04 +0000 |
commit | 615488695159cb594213d6edb34bde732516297f (patch) | |
tree | eedd369c728c97d553461fa025ad429771a6ab75 | |
parent | 00ec7d99953a70d123c4ad8efd22ceaaaa27aa1b (diff) | |
download | upstream-615488695159cb594213d6edb34bde732516297f.tar.gz upstream-615488695159cb594213d6edb34bde732516297f.tar.bz2 upstream-615488695159cb594213d6edb34bde732516297f.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35532 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8216.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index e6a460734f..4547f7c3b1 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.c +++ b/target/linux/generic/files/drivers/net/phy/ar8216.c @@ -833,9 +833,10 @@ ar8316_hw_init(struct ar8216_priv *priv) ADVERTISE_ALL | ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM); mdiobus_write(bus, i, MII_CTRL1000, ADVERTISE_1000FULL); mdiobus_write(bus, i, MII_BMCR, BMCR_RESET | BMCR_ANENABLE); - msleep(1000); } + msleep(1000); + out: priv->initialized = true; return 0; |