diff options
author | Ondrej Zary <linux@rainbow-software.org> | 2014-06-30 18:38:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-08 02:06:52 +0200 |
commit | 278e48b0c4152e600e2ed8328ba4347bc499d3f9 (patch) | |
tree | 6d7e50025b911a74a276b8822a1fb8826748e731 /drivers/net/ethernet/ti/tlan.c | |
parent | tlan: Don't scream if no link (diff) | |
download | linux-278e48b0c4152e600e2ed8328ba4347bc499d3f9.tar.xz linux-278e48b0c4152e600e2ed8328ba4347bc499d3f9.zip |
tlan: Make autonegotiation faster
Reduce the autonegotiation poll interval from 8 seconds to 2.
This greatly reduces the time needed to detect link presence,
especially on Olicom cards at 10 Mbps (two autonegoatiations required).
Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/tlan.c')
-rw-r--r-- | drivers/net/ethernet/ti/tlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers/net/ethernet/ti/tlan.c index 872f94c7f1cf..c4021de7ebea 100644 --- a/drivers/net/ethernet/ti/tlan.c +++ b/drivers/net/ethernet/ti/tlan.c @@ -2698,7 +2698,7 @@ static void tlan_phy_finish_auto_neg(struct net_device *dev) /* Wait for 8 sec to give the process * more time. Perhaps we should fail after a while. */ - tlan_set_timer(dev, (8*HZ), TLAN_TIMER_PHY_FINISH_AN); + tlan_set_timer(dev, 2 * HZ, TLAN_TIMER_PHY_FINISH_AN); return; } |