diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-03-14 17:11:48 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:14:27 -0500 |
commit | 72b845e04e99298e5179b31e8de16afed52a2627 (patch) | |
tree | c0e832b4fcb404b7624fec700ba5f12981de9d7d /drivers/net | |
parent | 0c51ed93ca0ecbf44ec096f4bd04c12a3e761e6b (diff) |
[TG3]: Do not try to access NIC_SRAM_DATA_SIG on Sun parts.
Sun does't put an SEEPROM behind the tigon3 chip, among other things,
so accesses to these areas just give bus timeouts.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/tg3.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index caf4102b54ce..31a16fa67558 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -9097,6 +9097,10 @@ static void __devinit tg3_get_eeprom_hw_cfg(struct tg3 *tp) | |||
9097 | tp->phy_id = PHY_ID_INVALID; | 9097 | tp->phy_id = PHY_ID_INVALID; |
9098 | tp->led_ctrl = LED_CTRL_MODE_PHY_1; | 9098 | tp->led_ctrl = LED_CTRL_MODE_PHY_1; |
9099 | 9099 | ||
9100 | /* Do not even try poking around in here on Sun parts. */ | ||
9101 | if (tp->tg3_flags2 & TG3_FLG2_SUN_570X) | ||
9102 | return; | ||
9103 | |||
9100 | tg3_read_mem(tp, NIC_SRAM_DATA_SIG, &val); | 9104 | tg3_read_mem(tp, NIC_SRAM_DATA_SIG, &val); |
9101 | if (val == NIC_SRAM_DATA_SIG_MAGIC) { | 9105 | if (val == NIC_SRAM_DATA_SIG_MAGIC) { |
9102 | u32 nic_cfg, led_cfg; | 9106 | u32 nic_cfg, led_cfg; |