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

Commit c83054cc authored by Bhaumik Bhatt's avatar Bhaumik Bhatt Committed by Gerrit - the friendly Code Review server
Browse files

mhi: cntrl: qcom: notify DRV suspend if device wake is set



Host can do a DRV handoff when device wake is set preventing
the device to go to low power modes. Notify DRV processor of
the same so it has device state awareness and acts accordingly
in order to prevent host from attempting low power modes.

Change-Id: I8e3a95b208cce6fed668fa666ac3d338590f9a96
Signed-off-by: default avatarBhaumik Bhatt <bbhatt@codeaurora.org>
parent 96cd1812
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -596,7 +596,8 @@ static int mhi_arch_drv_suspend(struct mhi_controller *mhi_cntrl)

	/* do a drv hand off */
	ret = msm_pcie_pm_control(MSM_PCIE_DRV_SUSPEND, mhi_cntrl->bus,
				  pci_dev, NULL, 0);
				  pci_dev, NULL, mhi_cntrl->wake_set ?
				  MSM_PCIE_CONFIG_NO_L1SS_TO : 0);

	/*
	 * we failed to suspend and scaled down pcie bw.. need to scale up again