aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-11-24 03:31:53 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-24 14:06:20 -0500
commit2e1e3291d4727e14c8f0f48df561afb1a5c26ffe (patch)
treed0819b91aa85056a89c4fddd77f0e070f3ae9068 /drivers/net/tg3.c
parent4bae65c892b4ff9a2797cbfa8526a5f9aaf1b2ed (diff)
tg3: Enable phy APD for 5717 and later asic revs
This patch enables the gphy autopowerdown feature in the phy for all new devices that support it. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 3079e1f540fd..afb79db5327e 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -12431,8 +12431,9 @@ static void __devinit tg3_get_eeprom_hw_cfg(struct tg3 *tp)
12431 if (cfg2 & (1 << 18)) 12431 if (cfg2 & (1 << 18))
12432 tp->phy_flags |= TG3_PHYFLG_SERDES_PREEMPHASIS; 12432 tp->phy_flags |= TG3_PHYFLG_SERDES_PREEMPHASIS;
12433 12433
12434 if (((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5784 && 12434 if (((tp->tg3_flags3 & TG3_FLG3_5717_PLUS) ||
12435 GET_CHIP_REV(tp->pci_chip_rev_id) != CHIPREV_5784_AX)) && 12435 ((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5784 &&
12436 GET_CHIP_REV(tp->pci_chip_rev_id) != CHIPREV_5784_AX))) &&
12436 (cfg2 & NIC_SRAM_DATA_CFG_2_APD_EN)) 12437 (cfg2 & NIC_SRAM_DATA_CFG_2_APD_EN))
12437 tp->phy_flags |= TG3_PHYFLG_ENABLE_APD; 12438 tp->phy_flags |= TG3_PHYFLG_ENABLE_APD;
12438 12439