Skip to contentSkip to conversation

tg3: Bypass power source switching for 57765

PATCH In review Matt Carlson 1 participant 1 message Jan 21, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 9/10 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.

---
 drivers/net/tg3.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/net/tg3.c +3 -1
index 075d21a..7810202 100644
@@ -2021,7 +2021,9 @@ static void tg3_frob_aux_power(struct tg3 *tp)
 {
 	struct tg3 *tp_peer = tp;
 
-	if ((tp->tg3_flags2 & TG3_FLG2_IS_NIC) == 0)
+	/* The GPIOs do something completely different on 57765. */
+	if ((tp->tg3_flags2 & TG3_FLG2_IS_NIC) == 0 ||
+	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765)
 		return;
 
 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704 ||
Signature · 1 line
1.6.4.4