]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: refactor PHY ID detection workaround
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 2 Dec 2009 17:02:43 +0000 (17:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2009 03:57:17 +0000 (19:57 -0800)
commit0a81b1a27a6bb50b10d5f30e3fed74d6e50bc864
tree53b19370657a6af448f5b82d2bcef9f4fb79f2c1
parent72c8098ddd7e669f3644967bc438ed28cd090000
e1000e: refactor PHY ID detection workaround

The workaround that detects the correct PHY ID when an initial read of the
PHY ID registers returns an invalid one should retry up to ten times with
a small delay between attempts using a single PHY address and then repeat
using the remaining possible PHY addresses.  Do this instead of trying each
possible PHY address repeating that up to 100 times.

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/hw.h
drivers/net/e1000e/phy.c