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

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

cnss2: Suspend/resume PCIe link and MHI even without WLAN driver



Even WLAN host driver is not present, still suspend/resume PCIe and
MHI during runtime PM feature so that it can be tested properly.

Change-Id: I9306a2503f47a106abbc1c93f43b6021a1b82f92
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 0bfc858f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1128,6 +1128,8 @@ static int cnss_pci_runtime_suspend(struct device *dev)
	if (driver_ops && driver_ops->runtime_ops &&
	    driver_ops->runtime_ops->runtime_suspend)
		ret = driver_ops->runtime_ops->runtime_suspend(pci_dev);
	else
		ret = cnss_auto_suspend(dev);

	cnss_pr_info("Runtime suspend status: %d\n", ret);

@@ -1155,6 +1157,8 @@ static int cnss_pci_runtime_resume(struct device *dev)
	if (driver_ops && driver_ops->runtime_ops &&
	    driver_ops->runtime_ops->runtime_resume)
		ret = driver_ops->runtime_ops->runtime_resume(pci_dev);
	else
		ret = cnss_auto_resume(dev);

	cnss_pr_info("Runtime resume status: %d\n", ret);