Commit 37f40239f49fbc0b489d0327a700fee5b3898ac2

Authored by Jesse Brandeburg
Committed by Linus Torvalds
1 parent 6babc32c41

e1000e: reset swflag after resetting hardware

in the process of debugging things, noticed that the swflag is not reset
by the driver after reset, and the swflag is probably not reset unless
management firmware clears it after 100ms.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

drivers/net/e1000e/ich8lan.c
... ... @@ -1778,6 +1778,9 @@
1778 1778 ew32(CTRL, (ctrl | E1000_CTRL_RST));
1779 1779 msleep(20);
1780 1780  
  1781 + /* release the swflag because it is not reset by hardware reset */
  1782 + e1000_release_swflag_ich8lan(hw);
  1783 +
1781 1784 ret_val = e1000e_get_auto_rd_done(hw);
1782 1785 if (ret_val) {
1783 1786 /*