projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56ace3a
)
be2net: return -ETIMEDOUT when a FW-cmd times out
author
Kalesh AP
<
[email protected]
>
Thu, 17 Jul 2014 10:50:21 +0000
(16:20 +0530)
committer
David S. Miller
<
[email protected]
>
Thu, 17 Jul 2014 23:38:14 +0000
(16:38 -0700)
When the FW stops responding with completions, return -ETIMEDOUT error
(instead of -1) to the stack.
Signed-off-by: Kalesh AP <
[email protected]
>
Signed-off-by: Sathya Perla <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/emulex/benet/be_cmds.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/emulex/benet/be_cmds.c
b/drivers/net/ethernet/emulex/benet/be_cmds.c
index 9904bbfd4e935a1ea0e3e4a21948128c98b52b6c..e632bd2d561c1e12e271a2c28ce063c43ca5bd6c 100644
(file)
--- 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,
if (!wait_for_completion_timeout(&adapter->et_cmd_compl,
msecs_to_jiffies(60000)))
- status = -
1
;
+ status = -
ETIMEDOUT
;
else
status = adapter->flash_status;
@@
-2320,7
+2320,7
@@
int be_cmd_write_flashrom(struct be_adapter *adapter, struct be_dma_mem *cmd,
if (!wait_for_completion_timeout(&adapter->et_cmd_compl,
msecs_to_jiffies(40000)))
- status = -
1
;
+ status = -
ETIMEDOUT
;
else
status = adapter->flash_status;