Commit e95ef5d3 authored by Andre Detsch's avatar Andre Detsch Committed by David S. Miller

cxgb3: Wait longer for control packets on initialization

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: default avatarWen Xiong <wenxiong@us.ibm.com>
Signed-off-by: default avatarAndre Detsch <adetsch@br.ibm.com>
Acked-by: default avatarDivy Le Ray <divy@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6f461f6c
...@@ -439,7 +439,7 @@ static void free_irq_resources(struct adapter *adapter) ...@@ -439,7 +439,7 @@ static void free_irq_resources(struct adapter *adapter)
static int await_mgmt_replies(struct adapter *adap, unsigned long init_cnt, static int await_mgmt_replies(struct adapter *adap, unsigned long init_cnt,
unsigned long n) unsigned long n)
{ {
int attempts = 5; int attempts = 10;
while (adap->sge.qs[0].rspq.offload_pkts < init_cnt + n) { while (adap->sge.qs[0].rspq.offload_pkts < init_cnt + n) {
if (!--attempts) if (!--attempts)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment