cnss: Remove unwanted pci resume call during system resume
msm_pcie_pm_control is an exported pcie API to request for PCIe link suspend/resume for auto suspend feature. The auto suspend feature now moved to use the runtime pm framework which is handles the PCIe link suspend/resume as part of runtime pm callbacks. Hence removing the unwanted resume call in system resume callback. Change-Id: I0e56f228f819eb3a6fc6a0c732b4e5adc0cc82b0 CRs-Fixed: 952659 Signed-off-by: Komal Kumar <kseelam@codeaurora.org>
This commit is contained in:
parent
22a99a40bf
commit
5a1a6cdec7
1 changed files with 0 additions and 10 deletions
|
@ -1527,16 +1527,6 @@ static int cnss_wlan_pci_resume(struct device *dev)
|
|||
if (!wdriver)
|
||||
goto out;
|
||||
|
||||
if (!penv->pcie_link_down_ind) {
|
||||
if (msm_pcie_pm_control(MSM_PCIE_RESUME,
|
||||
cnss_get_pci_dev_bus_number(pdev),
|
||||
pdev, NULL, PM_OPTIONS)) {
|
||||
pr_err("%s: Failed to resume PCIe link\n", __func__);
|
||||
ret = -EAGAIN;
|
||||
goto out;
|
||||
}
|
||||
penv->pcie_link_state = PCIE_LINK_UP;
|
||||
}
|
||||
if (wdriver->resume && !penv->pcie_link_down_ind) {
|
||||
if (penv->saved_state)
|
||||
pci_load_and_free_saved_state(pdev,
|
||||
|
|
Loading…
Add table
Reference in a new issue