Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256297
b: refs/heads/master
c: 7b749ff
h: refs/heads/master
i:
  256295: 6c19adc
v: v3
  • Loading branch information
Sritej Velaga authored and David S. Miller committed Jul 14, 2011
1 parent 55f2b10 commit f820f0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 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: 41c2178adce37b249147063624f8a27b064b471e
refs/heads/master: 7b749ff4dfba109d25a6b4fd011ee78877831e86
15 changes: 8 additions & 7 deletions trunk/drivers/net/qlcnic/qlcnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2811,6 +2811,7 @@ qlcnic_fwinit_work(struct work_struct *work)
struct qlcnic_adapter *adapter = container_of(work,
struct qlcnic_adapter, fw_work.work);
u32 dev_state = 0xf;
u32 val;

if (qlcnic_api_lock(adapter))
goto err_ret;
Expand All @@ -2837,11 +2838,6 @@ qlcnic_fwinit_work(struct work_struct *work)

if (!qlcnic_check_drv_state(adapter)) {
skip_ack_check:
if (!(adapter->flags & QLCNIC_FW_RESET_OWNER)) {
qlcnic_api_unlock(adapter);
goto wait_npar;
}

dev_state = QLCRD32(adapter, QLCNIC_CRB_DEV_STATE);

if (dev_state == QLCNIC_DEV_NEED_RESET) {
Expand All @@ -2850,17 +2846,22 @@ qlcnic_fwinit_work(struct work_struct *work)
set_bit(__QLCNIC_START_FW, &adapter->state);
QLCDB(adapter, DRV, "Restarting fw\n");
qlcnic_idc_debug_info(adapter, 0);
val = QLCRD32(adapter, QLCNIC_CRB_DRV_STATE);
QLC_DEV_SET_RST_RDY(val, adapter->portnum);
QLCWR32(adapter, QLCNIC_CRB_DRV_STATE, val);
}

qlcnic_api_unlock(adapter);

rtnl_lock();
if (adapter->ahw->fw_dump.enable) {
if (adapter->ahw->fw_dump.enable &&
(adapter->flags & QLCNIC_FW_RESET_OWNER)) {
QLCDB(adapter, DRV, "Take FW dump\n");
qlcnic_dump_fw(adapter);
adapter->flags &= ~QLCNIC_FW_RESET_OWNER;
}
rtnl_unlock();

adapter->flags &= ~QLCNIC_FW_RESET_OWNER;
if (!adapter->nic_ops->start_firmware(adapter)) {
qlcnic_schedule_work(adapter, qlcnic_attach_work, 0);
adapter->fw_wait_cnt = 0;
Expand Down

0 comments on commit f820f0c

Please sign in to comment.