Skip to content

Commit

Permalink
tlan: Make autonegotiation faster
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ondrej Zary authored and David S. Miller committed Jul 8, 2014
1 parent 8e62d67 commit 278e48b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/ti/tlan.c
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 278e48b

Please sign in to comment.