Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14453268 authored by Michael Adisumarta's avatar Michael Adisumarta
Browse files

msm: ipa: IPA IMP devote changes



Change the IMP devote to only happen after IMP is
past the probed state.

Change-Id: If2ba6a61f08abe2257ce77829efeb8ecce2f5054
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent 5c296134
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -935,8 +935,11 @@ static int imp_remove(struct platform_device *pdev)
	IMP_FUNC_ENTRY();
	mhi_driver_unregister(&mhi_driver);
	mutex_lock(&imp_ctx->mutex);
	if (!imp_ctx->in_lpm)
	if (!imp_ctx->in_lpm && (imp_ctx->state == IMP_READY ||
		imp_ctx->state == IMP_STARTED)) {
		IMP_DBG("devote IMP with state= %d\n", imp_ctx->state);
		IPA_ACTIVE_CLIENTS_DEC_SPECIAL("IMP");
	}
	imp_ctx->in_lpm = false;
	imp_ctx->lpm_disabled = false;