Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4e29ff7 authored by Komal Seelam's avatar Komal Seelam Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarKomal Kumar <kseelam@codeaurora.org>
parent 9c186765
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -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,