summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRajesh Borundia <rajesh.borundia@qlogic.com>2010-11-16 15:08:06 +0100
committerDavid S. Miller <davem@davemloft.net>2010-11-17 20:49:25 +0100
commitc21fd48c22bd1a9c4a5286963086f246c782e47e (patch)
tree4c7487a5e9682b522ec94aaefaed3e8caac03015 /drivers
parentqlcnic: Allow minimum bandwidth of zero (diff)
downloadlinux-c21fd48c22bd1a9c4a5286963086f246c782e47e.tar.xz
linux-c21fd48c22bd1a9c4a5286963086f246c782e47e.zip
qlcnic: Fix for kdump
In case of kdump environment the function may be in unknown state. Reset the function using PCI FLR before initializing it. Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com> Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/qlcnic/qlcnic_ctx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic_ctx.c b/drivers/net/qlcnic/qlcnic_ctx.c
index 1cdc05dade6b..3ad1f3eba289 100644
--- a/drivers/net/qlcnic/qlcnic_ctx.c
+++ b/drivers/net/qlcnic/qlcnic_ctx.c
@@ -480,6 +480,9 @@ int qlcnic_fw_create_ctx(struct qlcnic_adapter *adapter)
{
int err;
+ if (reset_devices)
+ pci_reset_function(adapter->pdev);
+
err = qlcnic_fw_cmd_create_rx_ctx(adapter);
if (err)
return err;