diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2010-11-24 11:31:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-24 22:06:20 +0300 |
commit | 2e1e3291d4727e14c8f0f48df561afb1a5c26ffe (patch) | |
tree | d0819b91aa85056a89c4fddd77f0e070f3ae9068 | |
parent | 4bae65c892b4ff9a2797cbfa8526a5f9aaf1b2ed (diff) | |
download | linux-2e1e3291d4727e14c8f0f48df561afb1a5c26ffe.tar.xz |
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>
-rw-r--r-- | drivers/net/tg3.c | 5 |
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) if (cfg2 & (1 << 18)) tp->phy_flags |= TG3_PHYFLG_SERDES_PREEMPHASIS; - if (((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5784 && - GET_CHIP_REV(tp->pci_chip_rev_id) != CHIPREV_5784_AX)) && + if (((tp->tg3_flags3 & TG3_FLG3_5717_PLUS) || + ((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5784 && + GET_CHIP_REV(tp->pci_chip_rev_id) != CHIPREV_5784_AX))) && (cfg2 & NIC_SRAM_DATA_CFG_2_APD_EN)) tp->phy_flags |= TG3_PHYFLG_ENABLE_APD; |