diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-02-12 09:37:23 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-16 08:31:45 +0100 |
commit | 8b3a0f0ba3c6c26330b49db178de3898a54f9f8a (patch) | |
tree | 68258ede25d76718eef254b5b819683b28e35ac2 /drivers/net/bnx2x_main.c | |
parent | bnx2x: Returning EBUSY in debug mode as well (diff) | |
download | linux-8b3a0f0ba3c6c26330b49db178de3898a54f9f8a.tar.xz linux-8b3a0f0ba3c6c26330b49db178de3898a54f9f8a.zip |
bnx2x: Increasing FW timeout
When enabling many debug prints, it can take a while before processing an event.
To ease the debug process, allow bigger timeout before giving up
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x_main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index 6c04539e42c7..6bd92199db21 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c @@ -6671,7 +6671,7 @@ static int bnx2x_wait_ramrod(struct bnx2x *bp, int state, int idx, int *state_p, int poll) { /* can take a while if any port is running */ - int cnt = 500; + int cnt = 5000; DP(NETIF_MSG_IFUP, "%s for state to become %x on IDX [%d]\n", poll ? "polling" : "waiting", state, idx); @@ -6689,8 +6689,12 @@ static int bnx2x_wait_ramrod(struct bnx2x *bp, int state, int idx, } mb(); /* state is changed by bnx2x_sp_event() */ - if (*state_p == state) + if (*state_p == state) { +#ifdef BNX2X_STOP_ON_ERROR + DP(NETIF_MSG_IFUP, "exit (cnt %d)\n", 5000 - cnt); +#endif return 0; + } msleep(1); } |