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

Commit 7db2e7aa authored by Hemant Kumar's avatar Hemant Kumar
Browse files

pci: msm: Add support to send vote against DRV PC



Some endpoints require to prevent DRV processor power
collapse in order to meet the latency requirement to
access DDR over PCIe link. Send the vote info as part
of DRV enable command over rpmsg.

Change-Id: Iac3e6a0cd4978be877ae305aad31ed02570e4f3c
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 4141c875
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6775,6 +6775,8 @@ static int msm_pcie_drv_suspend(struct msm_pcie_dev_t *pcie_dev,
	/* disable global irq - no more linkdown/aer detection */
	disable_irq(pcie_dev->irq[MSM_PCIE_INT_GLOBAL_INT].num);

	drv_info->drv_enable.pkt.dword[2] = options & MSM_PCIE_CONFIG_NO_DRV_PC;

	ret = msm_pcie_drv_send_rpmsg(pcie_dev, &drv_info->drv_enable);
	if (ret) {
		ret = -EBUSY;
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ enum msm_pcie_config {
	MSM_PCIE_CONFIG_LINKDOWN = 0x2,
	MSM_PCIE_CONFIG_NO_RECOVERY = 0x4,
	MSM_PCIE_CONFIG_NO_L1SS_TO = 0x8,
	MSM_PCIE_CONFIG_NO_DRV_PC = 0x10,
};

enum msm_pcie_pm_opt {