From c83054cce36d67005e52af2ab0afff7ad18746d3 Mon Sep 17 00:00:00 2001 From: Bhaumik Bhatt Date: Tue, 17 Dec 2019 18:07:41 -0800 Subject: [PATCH] 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 --- drivers/bus/mhi/controllers/mhi_arch_qcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/bus/mhi/controllers/mhi_arch_qcom.c b/drivers/bus/mhi/controllers/mhi_arch_qcom.c index beffe745cdf1..99864aa59db4 100644 --- a/drivers/bus/mhi/controllers/mhi_arch_qcom.c +++ b/drivers/bus/mhi/controllers/mhi_arch_qcom.c @@ -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