diff options
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 7892b0034c4f..5d155c50e6e3 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -6929,9 +6929,13 @@ static int tg3_chip_reset(struct tg3 *tp) | |||
6929 | val = GRC_MISC_CFG_CORECLK_RESET; | 6929 | val = GRC_MISC_CFG_CORECLK_RESET; |
6930 | 6930 | ||
6931 | if (tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) { | 6931 | if (tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) { |
6932 | if (tr32(0x7e2c) == 0x60) { | 6932 | /* Force PCIe 1.0a mode */ |
6933 | tw32(0x7e2c, 0x20); | 6933 | if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5785 && |
6934 | } | 6934 | !(tp->tg3_flags3 & TG3_FLG3_5717_PLUS) && |
6935 | tr32(TG3_PCIE_PHY_TSTCTL) == | ||
6936 | (TG3_PCIE_PHY_TSTCTL_PCIE10 | TG3_PCIE_PHY_TSTCTL_PSCRAM)) | ||
6937 | tw32(TG3_PCIE_PHY_TSTCTL, TG3_PCIE_PHY_TSTCTL_PSCRAM); | ||
6938 | |||
6935 | if (tp->pci_chip_rev_id != CHIPREV_ID_5750_A0) { | 6939 | if (tp->pci_chip_rev_id != CHIPREV_ID_5750_A0) { |
6936 | tw32(GRC_MISC_CFG, (1 << 29)); | 6940 | tw32(GRC_MISC_CFG, (1 << 29)); |
6937 | val |= (1 << 29); | 6941 | val |= (1 << 29); |