diff options
author | Carolyn Wyborny <carolyn.wyborny@intel.com> | 2012-10-19 01:31:43 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2012-11-01 05:15:31 -0400 |
commit | 40b20122f92b9e29d7770c12eb58b3a30e1cce33 (patch) | |
tree | e8824870a5aa31d271cf04b8405ea94b87359903 | |
parent | 3af3361e6c25ea58c72c31efa9f0eb9f9bee4749 (diff) |
igb: Remove workaround for EEE configuration on i210/I211
This patch removes a workaround that was needed on pre-release hardware.
Released hardware should not have this setting, but any devices that do
will get a warning message instead.
Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r-- | drivers/net/ethernet/intel/igb/e1000_82575.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.c b/drivers/net/ethernet/intel/igb/e1000_82575.c index ca4641e2f748..4313bcca876e 100644 --- a/drivers/net/ethernet/intel/igb/e1000_82575.c +++ b/drivers/net/ethernet/intel/igb/e1000_82575.c | |||
@@ -2233,19 +2233,16 @@ s32 igb_set_eee_i350(struct e1000_hw *hw) | |||
2233 | 2233 | ||
2234 | /* enable or disable per user setting */ | 2234 | /* enable or disable per user setting */ |
2235 | if (!(hw->dev_spec._82575.eee_disable)) { | 2235 | if (!(hw->dev_spec._82575.eee_disable)) { |
2236 | ipcnfg |= (E1000_IPCNFG_EEE_1G_AN | | 2236 | u32 eee_su = rd32(E1000_EEE_SU); |
2237 | E1000_IPCNFG_EEE_100M_AN); | 2237 | |
2238 | eeer |= (E1000_EEER_TX_LPI_EN | | 2238 | ipcnfg |= (E1000_IPCNFG_EEE_1G_AN | E1000_IPCNFG_EEE_100M_AN); |
2239 | E1000_EEER_RX_LPI_EN | | 2239 | eeer |= (E1000_EEER_TX_LPI_EN | E1000_EEER_RX_LPI_EN | |
2240 | E1000_EEER_LPI_FC); | 2240 | E1000_EEER_LPI_FC); |
2241 | 2241 | ||
2242 | /* keep the LPI clock running before EEE is enabled */ | 2242 | /* This bit should not be set in normal operation. */ |
2243 | if (hw->mac.type == e1000_i210 || hw->mac.type == e1000_i211) { | 2243 | if (eee_su & E1000_EEE_SU_LPI_CLK_STP) |
2244 | u32 eee_su; | 2244 | hw_dbg("LPI Clock Stop Bit should not be set!\n"); |
2245 | eee_su = rd32(E1000_EEE_SU); | 2245 | |
2246 | eee_su &= ~E1000_EEE_SU_LPI_CLK_STP; | ||
2247 | wr32(E1000_EEE_SU, eee_su); | ||
2248 | } | ||
2249 | 2246 | ||
2250 | } else { | 2247 | } else { |
2251 | ipcnfg &= ~(E1000_IPCNFG_EEE_1G_AN | | 2248 | ipcnfg &= ~(E1000_IPCNFG_EEE_1G_AN | |