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

Commit 9df5f01a authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Do not suspend/resume PCIe link during noirq stage



PCIe bus driver is not going to support client to suspend/resume PCIe
link during noirq stage. Remove them from noirq callbacks and let PCIe
bus driver to handle PCIe link in normal system suspend/resume case.

Change-Id: I95c43e4b563eb0609efd1a5f9dca09fde430d5fb
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent bcfee816
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -1090,11 +1090,6 @@ static int cnss_pci_suspend_noirq(struct device *dev)
	if (driver_ops && driver_ops->suspend_noirq)
		ret = driver_ops->suspend_noirq(pci_dev);

	ret = cnss_set_pci_link(pci_priv, PCI_LINK_DOWN);
	if (ret)
		goto out;
	pci_priv->pci_link_state = PCI_LINK_DOWN;

out:
	return ret;
}
@@ -1109,11 +1104,6 @@ static int cnss_pci_resume_noirq(struct device *dev)
	if (!pci_priv)
		goto out;

	ret = cnss_set_pci_link(pci_priv, PCI_LINK_UP);
	if (ret)
		goto out;
	pci_priv->pci_link_state = PCI_LINK_UP;

	driver_ops = pci_priv->driver_ops;
	if (driver_ops && driver_ops->resume_noirq &&
	    !pci_priv->pci_link_down_ind)