Skip to content

Commit

Permalink
netxen: fix firmware reset logic
Browse files Browse the repository at this point in the history
If netxen_need_fw_reset() return 0 [ implies firmware is up
and running], still go through dma mask check, etc.

Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dhananjay Phadke authored and David S. Miller committed Aug 24, 2009
1 parent 1bb482f commit 1dbc84a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/netxen/netxen_nic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,8 +754,10 @@ netxen_start_firmware(struct netxen_adapter *adapter, int request_fw)
netxen_request_firmware(adapter);

err = netxen_need_fw_reset(adapter);
if (err <= 0)
if (err < 0)
return err;
if (err == 0)
goto wait_init;

if (first_boot != 0x55555555) {
NXWR32(adapter, CRB_CMDPEG_STATE, 0);
Expand Down

0 comments on commit 1dbc84a

Please sign in to comment.