mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
msm: pcie: update with link power on check for user PCIe resume
Instead of checking PCIe S/W link state, check if the link is on is on or off to determine whether PCIe resume should be allowed or not. PCIe S/W link state is not enough to determine since MSM_PCIE_LINK_DOWN state can be set for link on or off. Change-Id: I23a27007eb90134c90d5a20034248697423ebeeb Signed-off-by: Tony Truong <truong@codeaurora.org>
This commit is contained in:
parent
1ca2f08101
commit
a85bf9cb8b
1 changed files with 3 additions and 5 deletions
|
|
@ -7041,12 +7041,10 @@ int msm_pcie_pm_control(enum msm_pcie_pm_opt pm_opt, u32 busnr, void *user,
|
|||
break;
|
||||
}
|
||||
|
||||
if (msm_pcie_dev[rc_idx].link_status !=
|
||||
MSM_PCIE_LINK_DISABLED) {
|
||||
if (msm_pcie_dev[rc_idx].power_on) {
|
||||
PCIE_ERR(&msm_pcie_dev[rc_idx],
|
||||
"PCIe: RC%d: requested to resume when link is not disabled:%d. Number of active EP(s): %d\n",
|
||||
rc_idx, msm_pcie_dev[rc_idx].link_status,
|
||||
msm_pcie_dev[rc_idx].num_active_ep);
|
||||
"PCIe: RC%d: requested to resume when link is already powered on. Number of active EP(s): %d\n",
|
||||
rc_idx, msm_pcie_dev[rc_idx].num_active_ep);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue