be2net: Fix firmware download for Lancer
authorSomnath Kotur <somnath.kotur@emulex.com>
Thu, 2 May 2013 03:36:34 +0000 (03:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 May 2013 20:43:13 +0000 (16:43 -0400)
Increasing the timeout value of write_object command to 60 seconds as
30 second timeout was found to be not enough for the command to complete.

Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c

index 180c3b79f0b960482a1b3dae017d73ae73ad03e9..e1e5bb9d90545d6a625d5476c873b942a2a37a04 100644 (file)
@@ -2087,7 +2087,7 @@ int lancer_cmd_write_object(struct be_adapter *adapter, struct be_dma_mem *cmd,
        spin_unlock_bh(&adapter->mcc_lock);
 
        if (!wait_for_completion_timeout(&adapter->flash_compl,
-                                        msecs_to_jiffies(30000)))
+                                        msecs_to_jiffies(60000)))
                status = -1;
        else
                status = adapter->flash_status;