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

Commit 551c0d6b authored by Chaitanya Pratapa's avatar Chaitanya Pratapa Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: Fix accessing coal registers when clock is off



There is a possibility to access coal registers when the clock
is off which results in unknown behavior. Make changes to ensure
clock is on when accessing coal registers.

Change-Id: Ia13841c5543798cb47ed6953a5c714e7426cb180
Signed-off-by: default avatarChaitanya Pratapa <cpratapa@codeaurora.org>
parent 5398ee57
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1162,9 +1162,6 @@ int ipa3_setup_sys_pipe(struct ipa_sys_connect_params *sys_in, u32 *clnt_hdl)
		goto fail_gen3;
	}

	if (!ep->keep_ipa_awake)
		IPA_ACTIVE_CLIENTS_DEC_EP(sys_in->client);

	IPADBG("client %d (ep: %d) connected sys=%pK\n", sys_in->client,
			ipa_ep_idx, ep->sys);

@@ -1186,6 +1183,9 @@ int ipa3_setup_sys_pipe(struct ipa_sys_connect_params *sys_in, u32 *clnt_hdl)
		}
	}

	if (!ep->keep_ipa_awake)
		IPA_ACTIVE_CLIENTS_DEC_EP(ep->client);

	return 0;

fail_gen3: