Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255495
b: refs/heads/master
c: c5caf48
h: refs/heads/master
i:
  255493: 81d5d72
  255491: fbee6b3
  255487: 208e14c
v: v3
  • Loading branch information
Bruce Allan authored and Jeff Kirsher committed Jun 10, 2011
1 parent a332fa3 commit 69da5b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99730e4c13c8344b02dd96108945b48d28c14c25
refs/heads/master: c5caf4825b22957e4ad70fd94316e91ce8cfb51c
11 changes: 8 additions & 3 deletions trunk/drivers/net/e1000e/ich8lan.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,8 +889,13 @@ static void e1000_release_swflag_ich8lan(struct e1000_hw *hw)
u32 extcnf_ctrl;

extcnf_ctrl = er32(EXTCNF_CTRL);
extcnf_ctrl &= ~E1000_EXTCNF_CTRL_SWFLAG;
ew32(EXTCNF_CTRL, extcnf_ctrl);

if (extcnf_ctrl & E1000_EXTCNF_CTRL_SWFLAG) {
extcnf_ctrl &= ~E1000_EXTCNF_CTRL_SWFLAG;
ew32(EXTCNF_CTRL, extcnf_ctrl);
} else {
e_dbg("Semaphore unexpectedly released by sw/fw/hw\n");
}

mutex_unlock(&swflag_mutex);
}
Expand Down Expand Up @@ -3066,7 +3071,7 @@ static s32 e1000_reset_hw_ich8lan(struct e1000_hw *hw)
msleep(20);

if (!ret_val)
e1000_release_swflag_ich8lan(hw);
mutex_unlock(&swflag_mutex);

if (ctrl & E1000_CTRL_PHY_RST) {
ret_val = hw->phy.ops.get_cfg_done(hw);
Expand Down

0 comments on commit 69da5b5

Please sign in to comment.