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

Commit e7fdedb0 authored by Jingxiang Ge's avatar Jingxiang Ge Committed by Gerrit - the friendly Code Review server
Browse files

cnss: ignore pci suspend/resume when target is power down



Ignore pci suspend/resume operation when target is power down.

Change-Id: I805e34f27e31b17a1afb4e579aa56e9ee94f68ea
CRs-Fixed: 2050280
Signed-off-by: default avatarJingxiang Ge <jge@codeaurora.org>
parent 30f04fcf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1767,6 +1767,9 @@ static int cnss_wlan_pci_suspend(struct device *dev)
	if (!penv)
		goto out;

	if (!penv->pcie_link_state)
		goto out;

	wdriver = penv->driver;
	if (!wdriver)
		goto out;
@@ -1794,6 +1797,9 @@ static int cnss_wlan_pci_resume(struct device *dev)
	if (!penv)
		goto out;

	if (!penv->pcie_link_state)
		goto out;

	wdriver = penv->driver;
	if (!wdriver)
		goto out;