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

Commit f9bda47d authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Set no_d3hot flag to avoid PCIe framework saving config space



CNSS driver is already saving PCIe config space as part of suspend and
resume. There is no need for PCIe framework to do it again. This is
able to improve suspend/resume KPI.

Change-Id: I940959ec93c435b9fd711c5e75a8bbc40ec916ad
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent cfca9e44
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1244,9 +1244,6 @@ static int cnss_pci_suspend_noirq(struct device *dev)
	if (driver_ops && driver_ops->suspend_noirq)
		ret = driver_ops->suspend_noirq(pci_dev);

	if (pci_priv->disable_pc && !pci_dev->state_saved)
		pci_save_state(pci_dev);

out:
	return ret;
}
@@ -2823,6 +2820,7 @@ static int cnss_pci_probe(struct pci_dev *pci_dev,
		goto out;
	}

	pci_dev->no_d3hot = true;
	pci_priv->pci_link_state = PCI_LINK_UP;
	pci_priv->plat_priv = plat_priv;
	pci_priv->pci_dev = pci_dev;