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

Commit d33ed6b2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cnss2: fix PCIe D3hot when suspending link"

parents 15e05b3a 1857b211
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -129,9 +129,10 @@ int cnss_suspend_pci_link(struct cnss_pci_data *pci_priv)

	pci_disable_device(pci_priv->pci_dev);

	ret = pci_set_power_state(pci_priv->pci_dev, PCI_D3hot);
	if (ret)
	if (pci_priv->pci_dev->device != QCA6174_DEVICE_ID) {
		if (pci_set_power_state(pci_priv->pci_dev, PCI_D3hot))
			cnss_pr_err("Failed to set D3Hot, err =  %d\n", ret);
	}

	ret = cnss_set_pci_link(pci_priv, PCI_LINK_DOWN);
	if (ret)