diff options
author | Ondrej Zary <linux@rainbow-software.org> | 2014-06-30 12:38:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-07 20:06:52 -0400 |
commit | 278e48b0c4152e600e2ed8328ba4347bc499d3f9 (patch) | |
tree | 6d7e50025b911a74a276b8822a1fb8826748e731 | |
parent | 8e62d670488282eed56bbdd0216691ababb0f6e9 (diff) |
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>
-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) | |||
2698 | /* Wait for 8 sec to give the process | 2698 | /* Wait for 8 sec to give the process |
2699 | * more time. Perhaps we should fail after a while. | 2699 | * more time. Perhaps we should fail after a while. |
2700 | */ | 2700 | */ |
2701 | tlan_set_timer(dev, (8*HZ), TLAN_TIMER_PHY_FINISH_AN); | 2701 | tlan_set_timer(dev, 2 * HZ, TLAN_TIMER_PHY_FINISH_AN); |
2702 | return; | 2702 | return; |
2703 | } | 2703 | } |
2704 | 2704 | ||