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

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

Merge "cnss2: Trigger runtime resume when DRV subsystem is disconnected"

parents f906b85b 950143f7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1691,6 +1691,8 @@ static void cnss_pci_event_cb(struct msm_pcie_notify *notify)
		break;
	case MSM_PCIE_EVENT_DRV_DISCONNECT:
		cnss_pr_dbg("DRV subsystem is disconnected\n");
		cnss_pci_pm_runtime_get(pci_priv);
		cnss_pci_pm_runtime_put_noidle(pci_priv);
		cnss_pci_set_drv_connected(pci_priv, 0);
		break;
	default:
@@ -2177,7 +2179,7 @@ void cnss_pci_pm_runtime_get_noresume(struct cnss_pci_data *pci_priv)
	if (!pci_priv)
		return;

	return pm_runtime_get_noresume(&pci_priv->pci_dev->dev);
	pm_runtime_get_noresume(&pci_priv->pci_dev->dev);
}

int cnss_pci_pm_runtime_put_autosuspend(struct cnss_pci_data *pci_priv)