Skip to content

Commit

Permalink
e1000e: reset swflag after resetting hardware
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesse Brandeburg authored and Linus Torvalds committed Oct 3, 2008
1 parent 6babc32 commit 37f4023
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/e1000e/ich8lan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1778,6 +1778,9 @@ static s32 e1000_reset_hw_ich8lan(struct e1000_hw *hw)
ew32(CTRL, (ctrl | E1000_CTRL_RST));
msleep(20);

/* release the swflag because it is not reset by hardware reset */
e1000_release_swflag_ich8lan(hw);

ret_val = e1000e_get_auto_rd_done(hw);
if (ret_val) {
/*
Expand Down

0 comments on commit 37f4023

Please sign in to comment.