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

Commit 26348621 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 if it is runtime suspended.

Change-Id: Id5525c21b1007e07d0f721eed3957e7629a15317
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 0ccdef37
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1691,8 +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);
		if (cnss_pci_get_auto_suspended(pci_priv))
			cnss_pci_pm_request_resume(pci_priv);
		cnss_pci_set_drv_connected(pci_priv, 0);
		break;
	default: