diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-21 12:08:21 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-21 12:08:21 -0500 |
| commit | ac58c9059da8886b5e8cde012a80266b18ca146e (patch) | |
| tree | 40bf486843a2cace6c3a959d73423e50e6aa0c00 /drivers/net/tg3.c | |
| parent | df6db302cb236ac3a683d535a3e2073d9f4b2833 (diff) | |
| parent | c4a1745aa09fc110afdefea0e5d025043e348bae (diff) | |
Merge branch 'linus'
Diffstat (limited to 'drivers/net/tg3.c')
| -rw-r--r-- | drivers/net/tg3.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index caf4102b54ce..6c6c5498899f 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
| @@ -7802,7 +7802,7 @@ static int tg3_test_link(struct tg3 *tp) | |||
| 7802 | } | 7802 | } |
| 7803 | 7803 | ||
| 7804 | /* Only test the commonly used registers */ | 7804 | /* Only test the commonly used registers */ |
| 7805 | static int tg3_test_registers(struct tg3 *tp) | 7805 | static const int tg3_test_registers(struct tg3 *tp) |
| 7806 | { | 7806 | { |
| 7807 | int i, is_5705; | 7807 | int i, is_5705; |
| 7808 | u32 offset, read_mask, write_mask, val, save_val, read_val; | 7808 | u32 offset, read_mask, write_mask, val, save_val, read_val; |
| @@ -8016,7 +8016,7 @@ out: | |||
| 8016 | 8016 | ||
| 8017 | static int tg3_do_mem_test(struct tg3 *tp, u32 offset, u32 len) | 8017 | static int tg3_do_mem_test(struct tg3 *tp, u32 offset, u32 len) |
| 8018 | { | 8018 | { |
| 8019 | static u32 test_pattern[] = { 0x00000000, 0xffffffff, 0xaa55a55a }; | 8019 | static const u32 test_pattern[] = { 0x00000000, 0xffffffff, 0xaa55a55a }; |
| 8020 | int i; | 8020 | int i; |
| 8021 | u32 j; | 8021 | u32 j; |
| 8022 | 8022 | ||
| @@ -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; |
