diff options
-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, | |||
6671 | int *state_p, int poll) | 6671 | int *state_p, int poll) |
6672 | { | 6672 | { |
6673 | /* can take a while if any port is running */ | 6673 | /* can take a while if any port is running */ |
6674 | int cnt = 500; | 6674 | int cnt = 5000; |
6675 | 6675 | ||
6676 | DP(NETIF_MSG_IFUP, "%s for state to become %x on IDX [%d]\n", | 6676 | DP(NETIF_MSG_IFUP, "%s for state to become %x on IDX [%d]\n", |
6677 | poll ? "polling" : "waiting", state, idx); | 6677 | poll ? "polling" : "waiting", state, idx); |
@@ -6689,8 +6689,12 @@ static int bnx2x_wait_ramrod(struct bnx2x *bp, int state, int idx, | |||
6689 | } | 6689 | } |
6690 | 6690 | ||
6691 | mb(); /* state is changed by bnx2x_sp_event() */ | 6691 | mb(); /* state is changed by bnx2x_sp_event() */ |
6692 | if (*state_p == state) | 6692 | if (*state_p == state) { |
6693 | #ifdef BNX2X_STOP_ON_ERROR | ||
6694 | DP(NETIF_MSG_IFUP, "exit (cnt %d)\n", 5000 - cnt); | ||
6695 | #endif | ||
6693 | return 0; | 6696 | return 0; |
6697 | } | ||
6694 | 6698 | ||
6695 | msleep(1); | 6699 | msleep(1); |
6696 | } | 6700 | } |