diff options
author | Casey Leedom <leedom@chelsio.com> | 2011-02-14 15:56:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-15 04:37:11 +0300 |
commit | 0550769bb7f364fb9aeeb9412229fb7790ee79c4 (patch) | |
tree | 0fd1796cb665a738663fdbb6c0c41060650b7d0d /drivers/net/cxgb4vf/t4vf_hw.c | |
parent | 7e9c26295b2ae1be1285c7c9e593c19ce7ea7eba (diff) | |
download | linux-0550769bb7f364fb9aeeb9412229fb7790ee79c4.tar.xz |
cxgb4vf: Use defined Mailbox Timeout
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>
Diffstat (limited to 'drivers/net/cxgb4vf/t4vf_hw.c')
-rw-r--r-- | drivers/net/cxgb4vf/t4vf_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cxgb4vf/t4vf_hw.c b/drivers/net/cxgb4vf/t4vf_hw.c index 0f51c80475ce..192db226ec7f 100644 --- 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) |