From: Prashant Sreedharan Date: Sat, 21 Jun 2014 06:28:15 +0000 (-0700) Subject: tg3: Change nvram command timeout value to 50ms X-Git-Tag: omap-for-v3.16/fixes-rc4~53^2~8 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66c965f5e1b702da2b5871a909b47034c62195d8;p=pandora-kernel.git tg3: Change nvram command timeout value to 50ms Commit 506724c463fcd63477a5e404728a980b71f80bb7 "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 Signed-off-by: Michael Chan Suggested-by: David Miller Signed-off-by: David S. Miller --- Reading git-diff-tree failed