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

Commit 6e364966 authored by Yue Ma's avatar Yue Ma Committed by Gerrit - the friendly Code Review server
Browse files

cnss2: Set PCIe link state in proper state during resume



pci_link_state is meant to track if CNSS driver suspends/resumes
PCIe link by calling PCIe bus suspend/resume APIs. Hence set it
in proper state during resume path to reflect accurate state change.

Change-Id: I638357e8a48d52796ac604dcea734056eb03ee54
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 729d9587
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2537,6 +2537,8 @@ int cnss_pci_resume_bus(struct cnss_pci_data *pci_priv)
		goto out;
	}

	pci_priv->pci_link_state = PCI_LINK_UP;

	if (pci_priv->drv_connected_last)
		goto skip_enable_pci;

@@ -2554,7 +2556,6 @@ int cnss_pci_resume_bus(struct cnss_pci_data *pci_priv)

skip_enable_pci:
	cnss_pci_set_mhi_state(pci_priv, CNSS_MHI_RESUME);
	pci_priv->pci_link_state = PCI_LINK_UP;
out:
	return ret;
}