Skip to content

Commit

Permalink
cxgb3: Wait longer for control packets on initialization
Browse files Browse the repository at this point in the history
In some Power7 platforms, when using VIOS (Virtual I/O Server), we
need to wait longer for control packets to finish transfer during
initialization.
Without this change, initialization may fail prematurely.

Signed-off-by: Wen Xiong <wenxiong@us.ibm.com>
Signed-off-by: Andre Detsch <adetsch@br.ibm.com>
Acked-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Andre Detsch authored and davem330 committed Apr 27, 2010
1 parent 6f461f6 commit e95ef5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/cxgb3/cxgb3_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ static void free_irq_resources(struct adapter *adapter)
static int await_mgmt_replies(struct adapter *adap, unsigned long init_cnt,
unsigned long n)
{
int attempts = 5;
int attempts = 10;

while (adap->sge.qs[0].rspq.offload_pkts < init_cnt + n) {
if (!--attempts)
Expand Down

0 comments on commit e95ef5d

Please sign in to comment.