diff options
Diffstat (limited to 'drivers/net/tg3.c')
-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) | |||
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 | ||