diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2010-01-20 11:58:10 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-20 22:21:02 -0500 |
commit | 334355aa590c4b58750015c2f5710cd5074f45dd (patch) | |
tree | 6f0d23d5cfd5f34f835a19c52dfcaa5c41cc4679 /drivers/net/tg3.c | |
parent | cb4ed1fd8af963101a59c8c5fef97cbbf5f3fb88 (diff) |
tg3: Bypass power source switching for 57765
The 57765 repurposes all the GPIOs normally used to switch power sources
when configured as a NIC device. This patch changes the code to avoid
touching the GPIOs for this asic rev.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 075d21a6b55a..78102023aa93 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -2021,7 +2021,9 @@ static void tg3_frob_aux_power(struct tg3 *tp) | |||
2021 | { | 2021 | { |
2022 | struct tg3 *tp_peer = tp; | 2022 | struct tg3 *tp_peer = tp; |
2023 | 2023 | ||
2024 | if ((tp->tg3_flags2 & TG3_FLG2_IS_NIC) == 0) | 2024 | /* The GPIOs do something completely different on 57765. */ |
2025 | if ((tp->tg3_flags2 & TG3_FLG2_IS_NIC) == 0 || | ||
2026 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765) | ||
2025 | return; | 2027 | return; |
2026 | 2028 | ||
2027 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704 || | 2029 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704 || |