Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195161
b: refs/heads/master
c: 4d5bdb3
h: refs/heads/master
i:
  195159: fd9e94e
v: v3
  • Loading branch information
Amit Kumar Salecha authored and David S. Miller committed May 18, 2010
1 parent f5382e1 commit d8d869a
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 7e382594a258f8733fd5b1790dc9362a05b9dbd9
refs/heads/master: 4d5bdb384813f1928016661f28fd45f8327c081d
9 changes: 8 additions & 1 deletion trunk/drivers/net/qlcnic/qlcnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ static int auto_fw_reset = AUTO_FW_RESET_ENABLED;
module_param(auto_fw_reset, int, 0644);
MODULE_PARM_DESC(auto_fw_reset, "Auto firmware reset (0=disabled, 1=enabled");

static int load_fw_file;
module_param(load_fw_file, int, 0644);
MODULE_PARM_DESC(load_fw_file, "Load firmware from (0=flash, 1=file");

static int __devinit qlcnic_probe(struct pci_dev *pdev,
const struct pci_device_id *ent);
static void __devexit qlcnic_remove(struct pci_dev *pdev);
Expand Down Expand Up @@ -585,7 +589,10 @@ qlcnic_start_firmware(struct qlcnic_adapter *adapter)
/* This is the first boot after power up */
QLCWR32(adapter, QLCNIC_CAM_RAM(0x1fc), QLCNIC_BDINFO_MAGIC);

qlcnic_request_firmware(adapter);
if (load_fw_file)
qlcnic_request_firmware(adapter);
else
adapter->fw_type = QLCNIC_FLASH_ROMIMAGE;

err = qlcnic_need_fw_reset(adapter);
if (err < 0)
Expand Down

0 comments on commit d8d869a

Please sign in to comment.