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: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Eilon Greenstein and committed by David S. Miller 46230476 76b190c5

+2 -2
+2 -2
drivers/net/bnx2x_main.c
··· 1717 return -EEXIST; 1718 } 1719 1720 - /* Try for 1 second every 5ms */ 1721 - for (cnt = 0; cnt < 200; cnt++) { 1722 /* Try to acquire the lock */ 1723 REG_WR(bp, hw_lock_control_reg + 4, resource_bit); 1724 lock_status = REG_RD(bp, hw_lock_control_reg);
··· 1717 return -EEXIST; 1718 } 1719 1720 + /* Try for 5 second every 5ms */ 1721 + for (cnt = 0; cnt < 1000; cnt++) { 1722 /* Try to acquire the lock */ 1723 REG_WR(bp, hw_lock_control_reg + 4, resource_bit); 1724 lock_status = REG_RD(bp, hw_lock_control_reg);