projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e9c262
)
cxgb4vf: Use defined Mailbox Timeout
author
Casey Leedom
<leedom@chelsio.com>
Mon, 14 Feb 2011 12:56:25 +0000
(12:56 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 15 Feb 2011 01:37:11 +0000
(17:37 -0800)
VF Driver should use mailbox command timeout specified in t4fw_interface.h
rather than hard-coded value of 500ms.
Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4vf/t4vf_hw.c
patch
|
blob
|
history
diff --git
a/drivers/net/cxgb4vf/t4vf_hw.c
b/drivers/net/cxgb4vf/t4vf_hw.c
index
0f51c80
..
192db22
100644
(file)
--- a/
drivers/net/cxgb4vf/t4vf_hw.c
+++ b/
drivers/net/cxgb4vf/t4vf_hw.c
@@
-171,7
+171,7
@@
int t4vf_wr_mbox_core(struct adapter *adapter, const void *cmd, int size,
delay_idx = 0;
ms = delay[0];
- for (i = 0; i <
500
; i += ms) {
+ for (i = 0; i <
FW_CMD_MAX_TIMEOUT
; i += ms) {
if (sleep_ok) {
ms = delay[delay_idx];
if (delay_idx < ARRAY_SIZE(delay) - 1)