Skip to content

Commit 278e48b

Browse files
Ondrej Zarydavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8e62d67 commit 278e48b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ti/tlan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2698,7 +2698,7 @@ static void tlan_phy_finish_auto_neg(struct net_device *dev)
26982698
/* Wait for 8 sec to give the process
26992699
* more time. Perhaps we should fail after a while.
27002700
*/
2701-
tlan_set_timer(dev, (8*HZ), TLAN_TIMER_PHY_FINISH_AN);
2701+
tlan_set_timer(dev, 2 * HZ, TLAN_TIMER_PHY_FINISH_AN);
27022702
return;
27032703
}
27042704

0 commit comments

Comments
 (0)