Skip to content

Commit 0550769

Browse files
Casey Leedomdavem330
authored andcommitted
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>
1 parent 7e9c262 commit 0550769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/cxgb4vf/t4vf_hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ int t4vf_wr_mbox_core(struct adapter *adapter, const void *cmd, int size,
171171
delay_idx = 0;
172172
ms = delay[0];
173173

174-
for (i = 0; i < 500; i += ms) {
174+
for (i = 0; i < FW_CMD_MAX_TIMEOUT; i += ms) {
175175
if (sleep_ok) {
176176
ms = delay[delay_idx];
177177
if (delay_idx < ARRAY_SIZE(delay) - 1)

0 commit comments

Comments
 (0)