aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalesh AP <kalesh.purayil@emulex.com>2014-07-17 06:50:21 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-17 19:38:14 -0400
commitfd45160cef0a4782cde70ec4cdeb9421ea8460b6 (patch)
tree5a13689de3f70a65d85a199e12a769c1012a03b4
parent56ace3a0d0209ea9f1806abb9c1046fdb89e0030 (diff)
be2net: return -ETIMEDOUT when a FW-cmd times out
When the FW stops responding with completions, return -ETIMEDOUT error (instead of -1) to the stack. Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com> Signed-off-by: Sathya Perla <sathya.perla@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/emulex/benet/be_cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.c b/drivers/net/ethernet/emulex/benet/be_cmds.c
index 9904bbfd4e93..e632bd2d561c 100644
--- a/drivers/net/ethernet/emulex/benet/be_cmds.c
+++ b/drivers/net/ethernet/emulex/benet/be_cmds.c
@@ -2224,7 +2224,7 @@ int lancer_cmd_write_object(struct be_adapter *adapter, struct be_dma_mem *cmd,
2224 2224
2225 if (!wait_for_completion_timeout(&adapter->et_cmd_compl, 2225 if (!wait_for_completion_timeout(&adapter->et_cmd_compl,
2226 msecs_to_jiffies(60000))) 2226 msecs_to_jiffies(60000)))
2227 status = -1; 2227 status = -ETIMEDOUT;
2228 else 2228 else
2229 status = adapter->flash_status; 2229 status = adapter->flash_status;
2230 2230
@@ -2320,7 +2320,7 @@ int be_cmd_write_flashrom(struct be_adapter *adapter, struct be_dma_mem *cmd,
2320 2320
2321 if (!wait_for_completion_timeout(&adapter->et_cmd_compl, 2321 if (!wait_for_completion_timeout(&adapter->et_cmd_compl,
2322 msecs_to_jiffies(40000))) 2322 msecs_to_jiffies(40000)))
2323 status = -1; 2323 status = -ETIMEDOUT;
2324 else 2324 else
2325 status = adapter->flash_status; 2325 status = adapter->flash_status;
2326 2326