mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 01:24:12 +08:00
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>
This commit is contained in:
parent
2abea2f0a5
commit
c21fd48c22
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user