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

Commit 915f8f9e 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 6854d585
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2590,6 +2590,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;

@@ -2607,7 +2609,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;
}