mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
parent
259c6481eb
commit
df93accff0
1 changed files with 3 additions and 3 deletions
|
|
@ -2583,9 +2583,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;
|
||||
}
|
||||
|
|
@ -4401,6 +4398,9 @@ static int cnss_pci_probe(struct pci_dev *pci_dev,
|
|||
goto out;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PCI_QTI
|
||||
pci_dev->no_d3hot = true;
|
||||
#endif
|
||||
pci_priv->pci_link_state = PCI_LINK_UP;
|
||||
pci_priv->plat_priv = plat_priv;
|
||||
pci_priv->pci_dev = pci_dev;
|
||||
|
|
|
|||
Loading…
Reference in a new issue