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

Commit 56badb9b authored by Amir Levy's avatar Amir Levy Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: fix issue of writing to register after clock devote



Make sure IPA clock is voted before writing to a register.

Change-Id: I59bacb4d2efcfb2c76017bbe40a8d70e5dfb2000
Acked-by: default avatarMichal Amsterdam <mamsterd@qti.qualcomm.com>
Signed-off-by: default avatarAmir Levy <alevy@codeaurora.org>
parent d7e13e27
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -185,15 +185,15 @@ int ipa3_reset_gsi_channel(u32 clnt_hdl)
		goto reset_chan_fail;
	}

	if (!ep->keep_ipa_awake)
		IPA_ACTIVE_CLIENTS_DEC_EP(ipa3_get_client_mapping(clnt_hdl));

	/* undo the aggr value if flag was set above*/
	if (undo_aggr_value) {
		fields.open_aggr_wrapper = false;
		ipahal_write_reg_fields(IPA_CLKON_CFG, &fields);
	}

	if (!ep->keep_ipa_awake)
		IPA_ACTIVE_CLIENTS_DEC_EP(ipa3_get_client_mapping(clnt_hdl));

	IPADBG("exit\n");
	return 0;