aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlge/qlge_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/qlge/qlge_main.c')
-rw-r--r--drivers/net/qlge/qlge_main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index e58892304e19..95fb63dcd9e4 100644
--- a/drivers/net/qlge/qlge_main.c
+++ b/drivers/net/qlge/qlge_main.c
@@ -77,8 +77,13 @@ static int qlge_mpi_coredump;
77module_param(qlge_mpi_coredump, int, 0); 77module_param(qlge_mpi_coredump, int, 0);
78MODULE_PARM_DESC(qlge_mpi_coredump, 78MODULE_PARM_DESC(qlge_mpi_coredump,
79 "Option to enable MPI firmware dump. " 79 "Option to enable MPI firmware dump. "
80 "Default is OFF - Do Not allocate memory. " 80 "Default is OFF - Do Not allocate memory. ");
81 "Do not perform firmware coredump."); 81
82static int qlge_force_coredump;
83module_param(qlge_force_coredump, int, 0);
84MODULE_PARM_DESC(qlge_force_coredump,
85 "Option to allow force of firmware core dump. "
86 "Default is OFF - Do not allow.");
82 87
83static DEFINE_PCI_DEVICE_TABLE(qlge_pci_tbl) = { 88static DEFINE_PCI_DEVICE_TABLE(qlge_pci_tbl) = {
84 {PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, QLGE_DEVICE_ID_8012)}, 89 {PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, QLGE_DEVICE_ID_8012)},
@@ -4496,6 +4501,8 @@ static int __devinit ql_init_device(struct pci_dev *pdev,
4496 err = -ENOMEM; 4501 err = -ENOMEM;
4497 goto err_out; 4502 goto err_out;
4498 } 4503 }
4504 if (qlge_force_coredump)
4505 set_bit(QL_FRC_COREDUMP, &qdev->flags);
4499 } 4506 }
4500 /* make sure the EEPROM is good */ 4507 /* make sure the EEPROM is good */
4501 err = qdev->nic_ops->get_flash(qdev); 4508 err = qdev->nic_ops->get_flash(qdev);