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

Commit bfd8e4b8 authored by Chaoli Zhou's avatar Chaoli Zhou
Browse files

cnss: comment cnss_msm_pcie_pm_control at GreenHills platform



It doesn't support virtualized clock currently,
so we cannot disable/enable clock while do PCIE link
suspend/resume from Linux side at Greenhills platform,
so comment the API cnss_msm_pcie_pm_control to prevent
doing PCIE link suspend/resume.

Change-Id: Ie10d781042ff3e85b3206fd300e9ec3f71897479
Signed-off-by: default avatarChaoli Zhou <zchaoli@codeaurora.org>
parent 595eeed3
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -1526,13 +1526,21 @@ struct pci_saved_state *cnss_pci_store_saved_state(struct pci_dev *dev)
	return pci_store_saved_state(dev);
}

#ifndef CONFIG_GHS_VMM
int cnss_msm_pcie_pm_control(
		enum msm_pcie_pm_opt pm_opt, u32 bus_num,
		struct pci_dev *pdev, u32 options)
{
	return msm_pcie_pm_control(pm_opt, bus_num, pdev, NULL, options);
}

#else
int cnss_msm_pcie_pm_control(
		enum msm_pcie_pm_opt pm_opt, u32 bus_num,
		struct pci_dev *pdev, u32 options)
{
	return 0;
}
#endif
int cnss_pci_load_and_free_saved_state(
	struct pci_dev *dev, struct pci_saved_state **state)
{