summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-02-09 13:26:04 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-02-09 13:26:04 +0000
commitde123c4409d3173dfe70322ceb796f6d0e935fde (patch)
tree451873b3899187f6086979a96f85598af824608b /target/linux
parent8f54ec7ce71fbd83b2755f31cb54055bf3810eba (diff)
downloadmtk-20170518-de123c4409d3173dfe70322ceb796f6d0e935fde.zip
mtk-20170518-de123c4409d3173dfe70322ceb796f6d0e935fde.tar.gz
mtk-20170518-de123c4409d3173dfe70322ceb796f6d0e935fde.tar.bz2
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
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.c3
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 e6a4607..4547f7c 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;