Skip to content

Commit

Permalink
qlcnic: fix context cleanup
Browse files Browse the repository at this point in the history
Before going for recovery, every pci-func should check fw state,
irrespective of device state. This to avoid unnecssary sending
of command for ctx destroy.

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Amit Kumar Salecha authored and David S. Miller committed May 14, 2010
1 parent e0a67e2 commit 2372a5f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/qlcnic/qlcnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2301,10 +2301,8 @@ qlcnic_check_health(struct qlcnic_adapter *adapter)
if (qlcnic_check_temp(adapter))
goto detach;

if (adapter->need_fw_reset) {
if (adapter->need_fw_reset)
qlcnic_dev_request_reset(adapter);
goto detach;
}

state = QLCRD32(adapter, QLCNIC_CRB_DEV_STATE);
if (state == QLCNIC_DEV_NEED_RESET || state == QLCNIC_DEV_NEED_QUISCENT)
Expand Down

0 comments on commit 2372a5f

Please sign in to comment.