diff options
author | Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com> | 2012-04-25 01:46:18 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-26 05:03:31 -0400 |
commit | 804c751599855a83efdc781cd9a2bda725d1391c (patch) | |
tree | d7d9e25955f007382a740ecc1bcda94e12dcb7e4 /drivers/net/ethernet/emulex | |
parent | 0fc16ebf69fc57b42110712eaaf8a6aa2492afbe (diff) | |
download | blackbird-op-linux-804c751599855a83efdc781cd9a2bda725d1391c.tar.gz blackbird-op-linux-804c751599855a83efdc781cd9a2bda725d1391c.zip |
be2net: Fix FW download in Lancer
Increase time given by driver to adapter for completing FW download
to 30 seconds. Also return correct status when FW download times out.
Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_cmds.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.c b/drivers/net/ethernet/emulex/benet/be_cmds.c index 22be08c03594..3ba4aed85b3e 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.c +++ b/drivers/net/ethernet/emulex/benet/be_cmds.c @@ -1824,18 +1824,16 @@ 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(12000))) + msecs_to_jiffies(30000))) status = -1; else status = adapter->flash_status; resp = embedded_payload(wrb); - if (!status) { + if (!status) *data_written = le32_to_cpu(resp->actual_write_len); - } else { + else *addn_status = resp->additional_status; - status = resp->status; - } return status; |