Commit 46230476 authored by Eilon Greenstein's avatar Eilon Greenstein Committed by David S. Miller

bnx2x: HW lock timeout

Increasing the lock timeout to 5 seconds instead of 1 second to minimize
the chance of failures due to timeout
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 76b190c5
...@@ -1717,8 +1717,8 @@ static int bnx2x_acquire_hw_lock(struct bnx2x *bp, u32 resource) ...@@ -1717,8 +1717,8 @@ static int bnx2x_acquire_hw_lock(struct bnx2x *bp, u32 resource)
return -EEXIST; return -EEXIST;
} }
/* Try for 1 second every 5ms */ /* Try for 5 second every 5ms */
for (cnt = 0; cnt < 200; cnt++) { for (cnt = 0; cnt < 1000; cnt++) {
/* Try to acquire the lock */ /* Try to acquire the lock */
REG_WR(bp, hw_lock_control_reg + 4, resource_bit); REG_WR(bp, hw_lock_control_reg + 4, resource_bit);
lock_status = REG_RD(bp, hw_lock_control_reg); lock_status = REG_RD(bp, hw_lock_control_reg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment