mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 23:46:41 +07:00
qlcnic: module param for firmware load option
By default fw is loaded from flash, user can change this priority using load_fw_file module param. Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7e382594a2
commit
4d5bdb3848
@ -61,6 +61,10 @@ static int auto_fw_reset = AUTO_FW_RESET_ENABLED;
|
|||||||
module_param(auto_fw_reset, int, 0644);
|
module_param(auto_fw_reset, int, 0644);
|
||||||
MODULE_PARM_DESC(auto_fw_reset, "Auto firmware reset (0=disabled, 1=enabled");
|
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,
|
static int __devinit qlcnic_probe(struct pci_dev *pdev,
|
||||||
const struct pci_device_id *ent);
|
const struct pci_device_id *ent);
|
||||||
static void __devexit qlcnic_remove(struct pci_dev *pdev);
|
static void __devexit qlcnic_remove(struct pci_dev *pdev);
|
||||||
@ -585,7 +589,10 @@ qlcnic_start_firmware(struct qlcnic_adapter *adapter)
|
|||||||
/* This is the first boot after power up */
|
/* This is the first boot after power up */
|
||||||
QLCWR32(adapter, QLCNIC_CAM_RAM(0x1fc), QLCNIC_BDINFO_MAGIC);
|
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);
|
err = qlcnic_need_fw_reset(adapter);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user