]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
cxgb3: Wait longer for control packets on initialization
authorAndre Detsch <adetsch@br.ibm.com>
Mon, 26 Apr 2010 05:38:27 +0000 (05:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Apr 2010 17:18:27 +0000 (10:18 -0700)
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>
drivers/net/cxgb3/cxgb3_main.c

index aced6c5e635cedf6a50694eb3fd61a8cc94f4ba2..e3f1b856649521b1c0c1841254b6e9d21a361305 100644 (file)
@@ -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)