Skip to content

Commit

Permalink
qlcnic: Fix for kdump
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rajesh Borundia authored and David S. Miller committed Nov 17, 2010
1 parent 2abea2f commit c21fd48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/qlcnic/qlcnic_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c21fd48

Please sign in to comment.