]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Change nvram command timeout value to 50ms
authorPrashant Sreedharan <prashant@broadcom.com>
Sat, 21 Jun 2014 06:28:15 +0000 (23:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jun 2014 22:56:21 +0000 (15:56 -0700)
commit2689881b2440aa26ef8e9e380a33b07024a215ff
treea611184e7b42d18321385f4ed6deab616a34958e
parent26ed78ded9542d0d565f3004b25c412156a3679d
tg3: Change nvram command timeout value to 50ms

Commit 1aacc53599e04a7e886e141a2d6ccdcce9e13977 "tg3: Override clock,
link aware and link idle mode during NVRAM dump" changed the timeout
value for nvram command execution from 100ms to 1ms. But the 1ms
timeout value was only sufficient for nvram read operations but not
write operations for most of the devices supported by tg3 driver.
This patch sets the MAX to 50ms. Also it uses usleep_range instead
of udelay.

Signed-off-by: Prashant Sreedharan <prashant@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Suggested-by: David Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c