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

Commit eb220f54 authored by Skylar Chang's avatar Skylar Chang
Browse files

msm: ipa: fix clock vote sm on imp



Fix the state machine state check for IPA MHI Proxy
when vote request arrives.

Change-Id: I0f56ae9705b47c4ff9f5e84f752e057e903bf9df
CRs-Fixed: 2247846
Acked-by: default avatarAdy Abraham <adya@qti.qualcomm.com>
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent 0cff98ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -594,7 +594,7 @@ int imp_handle_vote_req(bool vote)
	IMP_DBG_LOW("vote %d\n", vote);

	mutex_lock(&imp_ctx->mutex);
	if (imp_ctx->state != IMP_READY) {
	if (imp_ctx->state != IMP_STARTED) {
		IMP_ERR("unexpected vote when in state %d\n", imp_ctx->state);
		mutex_unlock(&imp_ctx->mutex);
		return -EPERM;