Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262790
b: refs/heads/master
c: 2031bd3
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Kravkov authored and David S. Miller committed Aug 11, 2011
1 parent 18d54f1 commit 84fa597
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cdb9d6ae8d128cc01d7a0649201102cd7de356e0
refs/heads/master: 2031bd3a8adce1259756e7f142b230c010035995
8 changes: 8 additions & 0 deletions trunk/drivers/net/bnx2x/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5798,6 +5798,12 @@ static int bnx2x_init_hw_common(struct bnx2x *bp)

DP(BNX2X_MSG_MCP, "starting common init func %d\n", BP_ABS_FUNC(bp));

/*
* take the UNDI lock to protect undi_unload flow from accessing
* registers while we're resetting the chip
*/
bnx2x_acquire_hw_lock(bp, HW_LOCK_RESOURCE_UNDI);

bnx2x_reset_common(bp);
REG_WR(bp, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_SET, 0xffffffff);

Expand All @@ -5808,6 +5814,8 @@ static int bnx2x_init_hw_common(struct bnx2x *bp)
}
REG_WR(bp, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_2_SET, val);

bnx2x_release_hw_lock(bp, HW_LOCK_RESOURCE_UNDI);

bnx2x_init_block(bp, BLOCK_MISC, PHASE_COMMON);

if (!CHIP_IS_E1x(bp)) {
Expand Down

0 comments on commit 84fa597

Please sign in to comment.