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

Commit aa065378 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cnss2: Check device status before suspending PCIe bus"

parents 41a07279 5d627425
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3407,7 +3407,8 @@ int cnss_pci_qmi_send_put(struct cnss_pci_data *pci_priv)
	cnss_pr_vdbg("Decreased QMI send usage count to %d\n",
		     pci_priv->qmi_send_usage_count);
	if (cnss_pci_get_auto_suspended(pci_priv) &&
	    !pci_priv->qmi_send_usage_count)
	    !pci_priv->qmi_send_usage_count &&
	    !cnss_pcie_is_device_down(pci_priv))
		ret = cnss_pci_suspend_bus(pci_priv);
	mutex_unlock(&pci_priv->bus_lock);