Merge "cnss2: Restore PCIe config space before enable PCIe device"

This commit is contained in:
qctecmdr 2021-05-06 19:07:09 -07:00 • committed by Gerrit - the friendly Code Review server
commit b794964c98

View file

@ -1144,16 +1144,16 @@ int cnss_resume_pci_link(struct cnss_pci_data *pci_priv)
}
}
ret = cnss_set_pci_config_space(pci_priv, RESTORE_PCI_CONFIG_SPACE);
if (ret)
goto out;
ret = pci_enable_device(pci_priv->pci_dev);
if (ret) {
cnss_pr_err("Failed to enable PCI device, err = %d\n", ret);
goto out;
}
ret = cnss_set_pci_config_space(pci_priv, RESTORE_PCI_CONFIG_SPACE);
if (ret)
goto out;
pci_set_master(pci_priv->pci_dev);
if (pci_priv->pci_link_down_ind)