summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorAndrei Danaila <adanaila@codeaurora.org>2015-02-18 18:16:28 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:11:15 -0700
commit30fc2b0436cbfb6994499d8944e0700174f8db86 (patch)
tree0adea23adcda318e4d0afa67a6f0bcb093305db2 /drivers/platform
parent9c1b21c4e3ff4e3f2beda0dd0bf140dad8cd0d86 (diff)
Revert "msm: mhi: Stale doorebell in MHI Host"
This reverts commit e38c1ec36984945d60d02002eae5e615d1b9b6aa. This commit can generate a link down in M2 state where the doorbell is flushed while the link is down. Change-Id: If29db648f0c6d2b0bd7a3d3a9b0f31ae5512c4eb Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/msm/mhi/mhi_states.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/msm/mhi/mhi_states.c b/drivers/platform/msm/mhi/mhi_states.c
index 65cbe88754b6..82c086f1cd5d 100644
--- a/drivers/platform/msm/mhi/mhi_states.c
+++ b/drivers/platform/msm/mhi/mhi_states.c
@@ -953,6 +953,7 @@ int mhi_initiate_m3(struct mhi_device_ctxt *mhi_dev_ctxt)
mhi_log(MHI_MSG_INFO,
"Triggering wake out of M2\n");
write_lock_irqsave(&mhi_dev_ctxt->xfer_lock, flags);
+ mhi_dev_ctxt->flags.pending_M3 = 1;
mhi_assert_device_wake(mhi_dev_ctxt);
write_unlock_irqrestore(&mhi_dev_ctxt->xfer_lock, flags);
r = wait_event_interruptible_timeout(*mhi_dev_ctxt->M0_event,