diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2010-01-15 08:31:34 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-16 04:01:55 -0500 |
commit | d5c1da56afb8a6b232393fb3fdef4909389d05fe (patch) | |
tree | 93da1e713ba6b43150da47fc75306ddeb0f440dc /drivers/net/qlge/qlge_main.c | |
parent | a2f982328427157eaa819c02986a65b9b168733a (diff) |
qlge: Add module param to force firmware core dump.
Default setting is 'off', don't allow force firmware dump.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge/qlge_main.c')
-rw-r--r-- | drivers/net/qlge/qlge_main.c | 11 |
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; | |||
77 | module_param(qlge_mpi_coredump, int, 0); | 77 | module_param(qlge_mpi_coredump, int, 0); |
78 | MODULE_PARM_DESC(qlge_mpi_coredump, | 78 | MODULE_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 | |
82 | static int qlge_force_coredump; | ||
83 | module_param(qlge_force_coredump, int, 0); | ||
84 | MODULE_PARM_DESC(qlge_force_coredump, | ||
85 | "Option to allow force of firmware core dump. " | ||
86 | "Default is OFF - Do not allow."); | ||
82 | 87 | ||
83 | static DEFINE_PCI_DEVICE_TABLE(qlge_pci_tbl) = { | 88 | static 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); |