mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
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: Hemant Kumar <hemantk@codeaurora.org>
This commit is contained in:
parent
4141c87590
commit
7db2e7aacd
2 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue