Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183229
b: refs/heads/master
c: 6a808c6
h: refs/heads/master
i:
  183227: e0a721e
v: v3
  • Loading branch information
Amit Kumar Salecha authored and David S. Miller committed Dec 23, 2009
1 parent 0d165ac commit a089f95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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: bc86fcbac0a86a93ee65cc31769c4e83e6ff2295
refs/heads/master: 6a808c6c02fb9f0ffa24ac7cca6cfc323cf98b21
3 changes: 3 additions & 0 deletions trunk/drivers/net/netxen/netxen_nic_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,9 @@ netxen_need_fw_reset(struct netxen_adapter *adapter)
if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
return 1;

if (adapter->need_fw_reset)
return 1;

/* last attempt had failed */
if (NXRD32(adapter, CRB_CMDPEG_STATE) == PHAN_INITIALIZE_FAILED)
return 1;
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/net/netxen/netxen_nic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2284,8 +2284,10 @@ netxen_check_health(struct netxen_adapter *adapter)
}

state = NXRD32(adapter, NX_CRB_DEV_STATE);
if (state == NX_DEV_NEED_RESET)
if (state == NX_DEV_NEED_RESET) {
adapter->need_fw_reset = 1;
goto detach;
}

if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
return 0;
Expand Down

0 comments on commit a089f95

Please sign in to comment.