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

Commit 62bc3220 authored by Chaitanya Pratapa's avatar Chaitanya Pratapa
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 0db5b33b
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -1157,9 +1157,6 @@ int ipa3_setup_sys_pipe(struct ipa_sys_connect_params *sys_in, u32 *clnt_hdl)
		goto fail_gen3;
		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,
	IPADBG("client %d (ep: %d) connected sys=%pK\n", sys_in->client,
			ipa_ep_idx, ep->sys);
			ipa_ep_idx, ep->sys);


@@ -1181,6 +1178,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;
	return 0;


fail_gen3:
fail_gen3: