Skip to content

Commit

Permalink
tg3: Bypass power source switching for 57765
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matt Carlson authored and David S. Miller committed Jan 21, 2010
1 parent cb4ed1f commit 334355a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit 334355a

Please sign in to comment.