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

Commit ff891d78 authored by Sujeev Dias's avatar Sujeev Dias
Browse files

mhi: cntrl: qcom: enable pm runtime in mission mode only



Runtime suspend only supported while controller is in Mission
mode.

CRs-Fixed: 2457862
Change-Id: I9326539c173e8114fa52344db4546c080d6f7769
Acked-by: default avatarBhaumik Vasav Bhatt <bbhatt@qti.qualcomm.com>
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent 3bfb7e8f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -117,12 +117,11 @@ static void mhi_arch_pci_link_state_cb(struct msm_pcie_notify *notify)

		arch_info->drv_connected = true;

		pm_runtime_allow(&pci_dev->dev);

		mutex_lock(&mhi_cntrl->pm_mutex);

		/* if we're in amss attempt a suspend */
		if (mhi_dev->powered_on && mhi_cntrl->ee == MHI_EE_AMSS) {
			pm_runtime_allow(&pci_dev->dev);
			pm_runtime_mark_last_busy(&pci_dev->dev);
			pm_request_autosuspend(&pci_dev->dev);
		}