summaryrefslogtreecommitdiff
path: root/drivers/platform/msm
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-04-25 21:48:39 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-04-25 21:48:39 -0700
commitf9d3e35e3577366c329d8299d2cfa1670a07bfbe (patch)
tree0f0d4035d589e8711f2eb1e19b466518d59af9ea /drivers/platform/msm
parent330663d26e269cc43cd695a83543164cd9848ceb (diff)
parent36603a2a7215ee2ee6270a981b0aba01296809d0 (diff)
Merge "mhi: core: allow communication during shutdown"
Diffstat (limited to 'drivers/platform/msm')
-rw-r--r--drivers/platform/msm/mhi/mhi_ssr.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/platform/msm/mhi/mhi_ssr.c b/drivers/platform/msm/mhi/mhi_ssr.c
index 9f18b1e7ef85..f4f2e427972f 100644
--- a/drivers/platform/msm/mhi/mhi_ssr.c
+++ b/drivers/platform/msm/mhi/mhi_ssr.c
@@ -29,11 +29,9 @@ static int mhi_ssr_notify_cb(struct notifier_block *nb,
mhi_log(mhi_dev_ctxt, MHI_MSG_INFO,
"Received ESOC notifcation:%lu crashed:%d\n", action, crashed);
switch (action) {
- case SUBSYS_BEFORE_SHUTDOWN:
- /*
- * update internal states only, we'll clean up MHI context
- * after device shutdown completely.
- */
+ case SUBSYS_AFTER_SHUTDOWN:
+
+ /* Disable internal state, no more communication */
write_lock_irq(&mhi_dev_ctxt->pm_xfer_lock);
cur_state = mhi_tryset_pm_state(mhi_dev_ctxt,
MHI_PM_LD_ERR_FATAL_DETECT);
@@ -42,8 +40,6 @@ static int mhi_ssr_notify_cb(struct notifier_block *nb,
mhi_log(mhi_dev_ctxt, MHI_MSG_INFO,
"Failed to transition to state 0x%x from 0x%x\n",
MHI_PM_LD_ERR_FATAL_DETECT, cur_state);
- break;
- case SUBSYS_AFTER_SHUTDOWN:
if (mhi_dev_ctxt->mhi_pm_state != MHI_PM_DISABLE)
process_disable_transition(MHI_PM_SHUTDOWN_PROCESS,
mhi_dev_ctxt);