mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
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:
parent
58fb72eeee
commit
e6716d048b
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue