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

Commit 92180312 authored by Ghanim Fodi's avatar Ghanim Fodi Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: Vote to IPA clocks when destroying MHI channels



Due to the missing vote, un-clocked access to GSI registers
occurred when destroying MHI channels. Fix it by voting
to the clocks.

CRs-Fixed: 2097296
Change-Id: Ib4fe41ff87ecb9746617b1ed3e32cae740de0c7e
Signed-off-by: default avatarGhanim Fodi <gfodi@codeaurora.org>
parent 27501237
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -629,6 +629,8 @@ int ipa3_mhi_destroy_channel(enum ipa_client_type client)
	}
	ep = &ipa3_ctx->ep[ipa_ep_idx];

	IPA_ACTIVE_CLIENTS_INC_EP(client);

	IPA_MHI_DBG("reset event ring (hdl: %lu, ep: %d)\n",
		ep->gsi_evt_ring_hdl, ipa_ep_idx);

@@ -650,8 +652,10 @@ int ipa3_mhi_destroy_channel(enum ipa_client_type client)
		goto fail;
	}

	IPA_ACTIVE_CLIENTS_DEC_EP(client);
	return 0;
fail:
	IPA_ACTIVE_CLIENTS_DEC_EP(client);
	return res;
}