summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/ti
diff options
context:
space:
mode:
authorOndrej Zary <linux@rainbow-software.org>2014-06-30 20:38:33 +0400
committerDavid S. Miller <davem@davemloft.net>2014-07-08 04:06:52 +0400
commit278e48b0c4152e600e2ed8328ba4347bc499d3f9 (patch)
tree6d7e50025b911a74a276b8822a1fb8826748e731 /drivers/net/ethernet/ti
parent8e62d670488282eed56bbdd0216691ababb0f6e9 (diff)
downloadlinux-278e48b0c4152e600e2ed8328ba4347bc499d3f9.tar.xz
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')
-rw-r--r--drivers/net/ethernet/ti/tlan.c2
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;
}