mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
mhi: core: Check PCIe link status before accessing MHI registers
Check PCIE link status before accessing MHI registers at DRV resume to overcome NOC error. Change-Id: I796e22797d91fba69e258addd0a73b04a7146d80 Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
This commit is contained in:
parent
b5a3e71931
commit
cf9bb7d795
1 changed files with 7 additions and 0 deletions
|
|
@ -1517,6 +1517,13 @@ int mhi_pm_fast_resume(struct mhi_controller *mhi_cntrl, bool notify_client)
|
|||
}
|
||||
|
||||
if (mhi_cntrl->rddm_supported) {
|
||||
|
||||
/* check EP is in proper state */
|
||||
if (mhi_cntrl->link_status(mhi_cntrl, mhi_cntrl->priv_data)) {
|
||||
MHI_ERR("Unable to access EP Config space\n");
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
if (mhi_get_exec_env(mhi_cntrl) == MHI_EE_RDDM &&
|
||||
!mhi_cntrl->power_down) {
|
||||
mhi_cntrl->ee = MHI_EE_RDDM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue