diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2009-11-02 09:27:34 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-03 02:39:08 -0500 |
commit | 303fc9218246a748304c005e629d658927cf12d0 (patch) | |
tree | 39be2f9d8e6c6d5c6a89076be9a1ba1a444ac610 | |
parent | c3df0748ee43101dfc5c94d1f61ddfca0ff5baa4 (diff) |
tg3: Extend loopback test timeout
This patch extends the loopback test timeout from 250 usec to 350 usec.
When the 5785 is paired against an AC131 phy, the older timeout is
just a little too close to the expected performance based on timings.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/tg3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index d726da8c5930..7bebb4778897 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -10424,8 +10424,8 @@ static int tg3_run_loopback(struct tg3 *tp, int loopback_mode) | |||
10424 | 10424 | ||
10425 | udelay(10); | 10425 | udelay(10); |
10426 | 10426 | ||
10427 | /* 250 usec to allow enough time on some 10/100 Mbps devices. */ | 10427 | /* 350 usec to allow enough time on some 10/100 Mbps devices. */ |
10428 | for (i = 0; i < 25; i++) { | 10428 | for (i = 0; i < 35; i++) { |
10429 | tw32_f(HOSTCC_MODE, tp->coalesce_mode | HOSTCC_MODE_ENABLE | | 10429 | tw32_f(HOSTCC_MODE, tp->coalesce_mode | HOSTCC_MODE_ENABLE | |
10430 | coal_now); | 10430 | coal_now); |
10431 | 10431 | ||