aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2012-05-09 22:51:17 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-06-02 03:12:33 -0400
commit6d7407bfba0b4eb21d843ff1f9e9c86156e502b2 (patch)
treee2ae0f8f0043671f19c7298c826f7fc26b1cd9c0
parent281a8f2462fe3cd2395902955205621e2c519464 (diff)
e1000e: fix Rapid Start Technology support for i217
The definition of I217_PROXY_CTRL must use the BM_PHY_REG() macro instead of the PHY_REG() macro for PHY page 800 register 70 since it is for a PHY register greater than the maximum allowed by the latter macro, and fix a typo setting the I217_MEMPWR register in e1000_suspend_workarounds_ich8lan. Also for clarity, rename a few defines as bit definitions instead of masks. Signed-off-by: Bruce Allan <bruce.w.allan@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/e1000e/ich8lan.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/ich8lan.c b/drivers/net/ethernet/intel/e1000e/ich8lan.c
index bbf70ba367da..238ab2f8a5e7 100644
--- a/drivers/net/ethernet/intel/e1000e/ich8lan.c
+++ b/drivers/net/ethernet/intel/e1000e/ich8lan.c
@@ -165,14 +165,14 @@
165#define I217_EEE_100_SUPPORTED (1 << 1) /* 100BaseTx EEE supported */ 165#define I217_EEE_100_SUPPORTED (1 << 1) /* 100BaseTx EEE supported */
166 166
167/* Intel Rapid Start Technology Support */ 167/* Intel Rapid Start Technology Support */
168#define I217_PROXY_CTRL PHY_REG(BM_WUC_PAGE, 70) 168#define I217_PROXY_CTRL BM_PHY_REG(BM_WUC_PAGE, 70)
169#define I217_PROXY_CTRL_AUTO_DISABLE 0x0080 169#define I217_PROXY_CTRL_AUTO_DISABLE 0x0080
170#define I217_SxCTRL PHY_REG(BM_PORT_CTRL_PAGE, 28) 170#define I217_SxCTRL PHY_REG(BM_PORT_CTRL_PAGE, 28)
171#define I217_SxCTRL_MASK 0x1000 171#define I217_SxCTRL_ENABLE_LPI_RESET 0x1000
172#define I217_CGFREG PHY_REG(772, 29) 172#define I217_CGFREG PHY_REG(772, 29)
173#define I217_CGFREG_MASK 0x0002 173#define I217_CGFREG_ENABLE_MTA_RESET 0x0002
174#define I217_MEMPWR PHY_REG(772, 26) 174#define I217_MEMPWR PHY_REG(772, 26)
175#define I217_MEMPWR_MASK 0x0010 175#define I217_MEMPWR_DISABLE_SMB_RELEASE 0x0010
176 176
177/* Strapping Option Register - RO */ 177/* Strapping Option Register - RO */
178#define E1000_STRAP 0x0000C 178#define E1000_STRAP 0x0000C
@@ -4089,12 +4089,12 @@ void e1000_suspend_workarounds_ich8lan(struct e1000_hw *hw)
4089 * power good. 4089 * power good.
4090 */ 4090 */
4091 e1e_rphy_locked(hw, I217_SxCTRL, &phy_reg); 4091 e1e_rphy_locked(hw, I217_SxCTRL, &phy_reg);
4092 phy_reg |= I217_SxCTRL_MASK; 4092 phy_reg |= I217_SxCTRL_ENABLE_LPI_RESET;
4093 e1e_wphy_locked(hw, I217_SxCTRL, phy_reg); 4093 e1e_wphy_locked(hw, I217_SxCTRL, phy_reg);
4094 4094
4095 /* Disable the SMB release on LCD reset. */ 4095 /* Disable the SMB release on LCD reset. */
4096 e1e_rphy_locked(hw, I217_MEMPWR, &phy_reg); 4096 e1e_rphy_locked(hw, I217_MEMPWR, &phy_reg);
4097 phy_reg &= ~I217_MEMPWR; 4097 phy_reg &= ~I217_MEMPWR_DISABLE_SMB_RELEASE;
4098 e1e_wphy_locked(hw, I217_MEMPWR, phy_reg); 4098 e1e_wphy_locked(hw, I217_MEMPWR, phy_reg);
4099 } 4099 }
4100 4100
@@ -4103,7 +4103,7 @@ void e1000_suspend_workarounds_ich8lan(struct e1000_hw *hw)
4103 * Support 4103 * Support
4104 */ 4104 */
4105 e1e_rphy_locked(hw, I217_CGFREG, &phy_reg); 4105 e1e_rphy_locked(hw, I217_CGFREG, &phy_reg);
4106 phy_reg |= I217_CGFREG_MASK; 4106 phy_reg |= I217_CGFREG_ENABLE_MTA_RESET;
4107 e1e_wphy_locked(hw, I217_CGFREG, phy_reg); 4107 e1e_wphy_locked(hw, I217_CGFREG, phy_reg);
4108 4108
4109release: 4109release:
@@ -4176,7 +4176,7 @@ void e1000_resume_workarounds_pchlan(struct e1000_hw *hw)
4176 ret_val = e1e_rphy_locked(hw, I217_MEMPWR, &phy_reg); 4176 ret_val = e1e_rphy_locked(hw, I217_MEMPWR, &phy_reg);
4177 if (ret_val) 4177 if (ret_val)
4178 goto release; 4178 goto release;
4179 phy_reg |= I217_MEMPWR_MASK; 4179 phy_reg |= I217_MEMPWR_DISABLE_SMB_RELEASE;
4180 e1e_wphy_locked(hw, I217_MEMPWR, phy_reg); 4180 e1e_wphy_locked(hw, I217_MEMPWR, phy_reg);
4181 4181
4182 /* Disable Proxy */ 4182 /* Disable Proxy */
@@ -4186,7 +4186,7 @@ void e1000_resume_workarounds_pchlan(struct e1000_hw *hw)
4186 ret_val = e1e_rphy_locked(hw, I217_CGFREG, &phy_reg); 4186 ret_val = e1e_rphy_locked(hw, I217_CGFREG, &phy_reg);
4187 if (ret_val) 4187 if (ret_val)
4188 goto release; 4188 goto release;
4189 phy_reg &= ~I217_CGFREG_MASK; 4189 phy_reg &= ~I217_CGFREG_ENABLE_MTA_RESET;
4190 e1e_wphy_locked(hw, I217_CGFREG, phy_reg); 4190 e1e_wphy_locked(hw, I217_CGFREG, phy_reg);
4191release: 4191release:
4192 if (ret_val) 4192 if (ret_val)