From: Matt Carlson Date: Mon, 2 Nov 2009 14:27:34 +0000 (+0000) Subject: tg3: Extend loopback test timeout X-Git-Tag: v3.12-rc1~12159^2~546 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=303fc9218246a748304c005e629d658927cf12d0;p=kernel%2Fkernel-generic.git 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 Reviewed-by: Michael Chan Signed-off-by: David S. Miller --- diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index d726da8..7bebb47 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) udelay(10); - /* 250 usec to allow enough time on some 10/100 Mbps devices. */ - for (i = 0; i < 25; i++) { + /* 350 usec to allow enough time on some 10/100 Mbps devices. */ + for (i = 0; i < 35; i++) { tw32_f(HOSTCC_MODE, tp->coalesce_mode | HOSTCC_MODE_ENABLE | coal_now);