提交 064b4330 编写于 作者: C Carolyn Wyborny 提交者: Jeff Kirsher

igb: Fix lack of flush after register write and before delay

Register writes followed by a delay are required to have a flush
before the delay in order to commit the values to the register.  Without
the flush, the code following the delay may not function correctly.
Reported-by: NTong Ho <tong.ho@ericsson.com>
Reported-by: NGuenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: NCarolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: NAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 d84e0bd7
...@@ -1735,6 +1735,7 @@ static s32 igb_reset_hw_82580(struct e1000_hw *hw) ...@@ -1735,6 +1735,7 @@ static s32 igb_reset_hw_82580(struct e1000_hw *hw)
ctrl |= E1000_CTRL_RST; ctrl |= E1000_CTRL_RST;
wr32(E1000_CTRL, ctrl); wr32(E1000_CTRL, ctrl);
wrfl();
/* Add delay to insure DEV_RST has time to complete */ /* Add delay to insure DEV_RST has time to complete */
if (global_device_reset) if (global_device_reset)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册