diff options
author | Rajesh Borundia <rajesh.borundia@qlogic.com> | 2010-10-26 22:51:50 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-28 11:47:53 -0700 |
commit | 683b65f89a7c26d9a9180d25066815ef5a31bd71 (patch) | |
tree | e26a2d8c8ebb1b987bc5892a88caca3f7b91a1d9 /drivers/net/netxen/netxen_nic_main.c | |
parent | 448d7b5daf043d109df98e3e8f8deb165c2e8896 (diff) | |
download | op-kernel-dev-683b65f89a7c26d9a9180d25066815ef5a31bd71.zip op-kernel-dev-683b65f89a7c26d9a9180d25066815ef5a31bd71.tar.gz |
netxen: fix kdump
Reset the whole hw instead of freeing hw resources
consumed by each pci function.
Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_main.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index 50820bea..35ae1aa 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c @@ -1356,6 +1356,13 @@ netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) break; } + if (reset_devices) { + if (adapter->portnum == 0) { + NXWR32(adapter, NX_CRB_DEV_REF_COUNT, 0); + adapter->need_fw_reset = 1; + } + } + err = netxen_start_firmware(adapter); if (err) goto err_out_decr_ref; |