mhi: msm: Abort RDDM dump collection in PBL state

Abort RDDM dump collection through __mhi_download_rddm_in_panic()
when device is in PBL state.

Change-Id: Ic2b5b9be79523881fca5c37dd1a3e1264bfa3829
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
This commit is contained in:
Vivek Pernamitta 2021-04-28 20:36:00 +05:30
commit e6716d048b

View file

@ -221,6 +221,12 @@ static int __mhi_download_rddm_in_panic(struct mhi_controller *mhi_cntrl)
TO_MHI_STATE_STR(mhi_cntrl->dev_state),
TO_MHI_EXEC_STR(mhi_cntrl->ee));
if (mhi_cntrl->ee == MHI_EE_PBL) {
MHI_CNTRL_LOG("Aborting RDDM dumps as device is in %s state\n",
TO_MHI_EXEC_STR(mhi_cntrl->ee));
return -EACCES;
}
/*
* This should only be executing during a kernel panic, we expect all
* other cores to shutdown while we're collecting rddm buffer. After