mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
cnss2: Restore PCIe config space before enable PCIe device
Enabling PCIe device will also modify PCIe config space so doing it after PCIe config space has been restored. Change-Id: Idcc8410696523dd80c3c339f380f963f986c94c5 Signed-off-by: Yue Ma <yuem@codeaurora.org> Signed-off-by: wadesong <wadesong@codeaurora.org>
This commit is contained in:
parent
d92f4c724b
commit
84cfeec0fd
1 changed files with 4 additions and 4 deletions
|
|
@ -1106,16 +1106,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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue