]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: delay second read of PHY_STATUS register on failure of first read
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 1 Jul 2009 13:28:50 +0000 (13:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Jul 2009 03:09:39 +0000 (20:09 -0700)
commitd80ba15c14c1ef2c36c334b8ccf79b46e3add6ef
treed5d12aa0a373b3d9cb8ce072d64d3bdeffaa7400
parentcc4e8f928cdfed0f77608f1c0fea16faed68be1b
e1000e: delay second read of PHY_STATUS register on failure of first read

Some PHYs may require two reads of the PHY_STATUS register to determine the
link status.  If the PHY is being accessed by another thread it is possible
the first read could timeout and fail.  In this case, put a delay in so
the second read will pick up the correct link status.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000e/phy.c