summaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/hw.h
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2009-12-02 18:02:43 +0100
committerDavid S. Miller <davem@davemloft.net>2009-12-03 04:57:17 +0100
commit5eb6f3c70fcc0fb19b9087863e6e29f96a76f3bd (patch)
tree53b19370657a6af448f5b82d2bcef9f4fb79f2c1 /drivers/net/e1000e/hw.h
parente1000e: check_polarity function pointers not set for 8257x (diff)
downloadlinux-5eb6f3c70fcc0fb19b9087863e6e29f96a76f3bd.tar.xz
linux-5eb6f3c70fcc0fb19b9087863e6e29f96a76f3bd.zip
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>
Diffstat (limited to 'drivers/net/e1000e/hw.h')
-rw-r--r--drivers/net/e1000e/hw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/e1000e/hw.h b/drivers/net/e1000e/hw.h
index 41609d5561ba..a7d08dae79c4 100644
--- a/drivers/net/e1000e/hw.h
+++ b/drivers/net/e1000e/hw.h
@@ -219,7 +219,7 @@ enum e1e_registers {
E1000_HICR = 0x08F00, /* Host Interface Control */
};
-/* RSS registers */
+#define E1000_MAX_PHY_ADDR 4
/* IGP01E1000 Specific Registers */
#define IGP01E1000_PHY_PORT_CONFIG 0x10 /* Port Config */