aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/tg3.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 1e7a135de7b3..e4efb5203e22 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -7809,6 +7809,22 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
7809 if (tp->tg3_flags & TG3_FLAG_INIT_COMPLETE) 7809 if (tp->tg3_flags & TG3_FLAG_INIT_COMPLETE)
7810 tg3_abort_hw(tp, 1); 7810 tg3_abort_hw(tp, 1);
7811 7811
7812 /* Enable MAC control of LPI */
7813 if (tp->phy_flags & TG3_PHYFLG_EEE_CAP) {
7814 tw32_f(TG3_CPMU_EEE_LNKIDL_CTRL,
7815 TG3_CPMU_EEE_LNKIDL_PCIE_NL0 |
7816 TG3_CPMU_EEE_LNKIDL_UART_IDL);
7817
7818 tw32_f(TG3_CPMU_EEE_CTRL,
7819 TG3_CPMU_EEE_CTRL_EXIT_20_1_US);
7820
7821 tw32_f(TG3_CPMU_EEE_MODE,
7822 TG3_CPMU_EEEMD_ERLY_L1_XIT_DET |
7823 TG3_CPMU_EEEMD_LPI_IN_TX |
7824 TG3_CPMU_EEEMD_LPI_IN_RX |
7825 TG3_CPMU_EEEMD_EEE_ENABLE);
7826 }
7827
7812 if (reset_phy) 7828 if (reset_phy)
7813 tg3_phy_reset(tp); 7829 tg3_phy_reset(tp);
7814 7830
@@ -7890,22 +7906,6 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
7890 tw32(TG3_CPMU_LSPD_10MB_CLK, val); 7906 tw32(TG3_CPMU_LSPD_10MB_CLK, val);
7891 } 7907 }
7892 7908
7893 /* Enable MAC control of LPI */
7894 if (tp->phy_flags & TG3_PHYFLG_EEE_CAP) {
7895 tw32_f(TG3_CPMU_EEE_LNKIDL_CTRL,
7896 TG3_CPMU_EEE_LNKIDL_PCIE_NL0 |
7897 TG3_CPMU_EEE_LNKIDL_UART_IDL);
7898
7899 tw32_f(TG3_CPMU_EEE_CTRL,
7900 TG3_CPMU_EEE_CTRL_EXIT_20_1_US);
7901
7902 tw32_f(TG3_CPMU_EEE_MODE,
7903 TG3_CPMU_EEEMD_ERLY_L1_XIT_DET |
7904 TG3_CPMU_EEEMD_LPI_IN_TX |
7905 TG3_CPMU_EEEMD_LPI_IN_RX |
7906 TG3_CPMU_EEEMD_EEE_ENABLE);
7907 }
7908
7909 /* This works around an issue with Athlon chipsets on 7909 /* This works around an issue with Athlon chipsets on
7910 * B3 tigon3 silicon. This bit has no effect on any 7910 * B3 tigon3 silicon. This bit has no effect on any
7911 * other revision. But do not set this on PCI Express 7911 * other revision. But do not set this on PCI Express