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: Bhaumik Bhatt <bbhatt@codeaurora.org>
This commit is contained in:
Bhaumik Bhatt 2019-12-17 18:07:41 -08:00 • committed by Gerrit - the friendly Code Review server
commit c83054cce3

View file

@ -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