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

Commit 950143f7 authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Trigger runtime resume when DRV subsystem is disconnected



If DRV subsystem is disconnected, a immediate resume is needed to
recovery PCIe link.

Change-Id: I3d415043f5c80f7cf57e89a7d2238a4f3c4df8ad
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 6d6aa1c9
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)