提交 efc38d2a 编写于 作者: B Bruce Allan 提交者: Jeff Kirsher

e1000e: use correct type for read of 32-bit register

The POEMB register is 32 bits, not 16.
Signed-off-by: NBruce Allan <bruce.w.allan@intel.com>
Tested-by: NAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 761743eb
...@@ -653,7 +653,7 @@ static void e1000_put_hw_semaphore_82574(struct e1000_hw *hw) ...@@ -653,7 +653,7 @@ static void e1000_put_hw_semaphore_82574(struct e1000_hw *hw)
**/ **/
static s32 e1000_set_d0_lplu_state_82574(struct e1000_hw *hw, bool active) static s32 e1000_set_d0_lplu_state_82574(struct e1000_hw *hw, bool active)
{ {
u16 data = er32(POEMB); u32 data = er32(POEMB);
if (active) if (active)
data |= E1000_PHY_CTRL_D0A_LPLU; data |= E1000_PHY_CTRL_D0A_LPLU;
...@@ -677,7 +677,7 @@ static s32 e1000_set_d0_lplu_state_82574(struct e1000_hw *hw, bool active) ...@@ -677,7 +677,7 @@ static s32 e1000_set_d0_lplu_state_82574(struct e1000_hw *hw, bool active)
**/ **/
static s32 e1000_set_d3_lplu_state_82574(struct e1000_hw *hw, bool active) static s32 e1000_set_d3_lplu_state_82574(struct e1000_hw *hw, bool active)
{ {
u16 data = er32(POEMB); u32 data = er32(POEMB);
if (!active) { if (!active) {
data &= ~E1000_PHY_CTRL_NOND0A_LPLU; data &= ~E1000_PHY_CTRL_NOND0A_LPLU;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册