summaryrefslogtreecommitdiff
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-08-02 11:26:00 +0000
committerDavid S. Miller <davem@davemloft.net>2010-08-02 15:46:29 -0700
commit8c69b1e702527e39c0b4fbda79d2738d186a3908 (patch)
tree662772644a446b20766496f8c741c84143480c5c /drivers/net/tg3.c
parentf37500d3f66ba82888315838278d56fc27308327 (diff)
downloadlinux-3.10-8c69b1e702527e39c0b4fbda79d2738d186a3908.tar.gz
linux-3.10-8c69b1e702527e39c0b4fbda79d2738d186a3908.tar.bz2
linux-3.10-8c69b1e702527e39c0b4fbda79d2738d186a3908.zip
tg3: Restrict ASPM workaround devlist
The ASPM workaround setting obtained from NVRAM only works with devices older than 5717. This patch enforces the restriction. Reviewed-by: Benjamin Li <benli@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 38979f24e54..7c2c81ab483 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -12188,7 +12188,9 @@ static void __devinit tg3_get_eeprom_hw_cfg(struct tg3 *tp)
(cfg2 & NIC_SRAM_DATA_CFG_2_APD_EN))
tp->tg3_flags3 |= TG3_FLG3_PHY_ENABLE_APD;
- if (tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) {
+ if ((tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) &&
+ GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5785 &&
+ !(tp->tg3_flags3 & TG3_FLG3_5717_PLUS)) {
u32 cfg3;
tg3_read_mem(tp, NIC_SRAM_DATA_CFG_3, &cfg3);