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

Commit 9cce3609 authored by Ravinder Konka's avatar Ravinder Konka
Browse files

msm: ipa: fix to make sure IPA clock is on



When sending holb monitoring command to uc there is a
possibility that IPA clock is off which can result in
unclocked access. Make change to enable IPA clock before
sending holb monitoring command to uc.

Change-Id: Ia8e7564372d4b4ec9f3ad35927e0d403d0695753
Acked-by: default avatarChaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: default avatarRavinder Konka <rkonka@codeaurora.org>
parent bfb07a5c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1609,6 +1609,7 @@ int ipa_q6_monitor_holb_mitigation(bool enable)
	int ep_idx;
	int client_idx;

	IPA2_ACTIVE_CLIENTS_INC_SIMPLE();
	for (client_idx = 0; client_idx < IPA_CLIENT_MAX; client_idx++) {
		if (IPA_CLIENT_IS_Q6_NON_ZIP_CONS(client_idx)) {
			ep_idx = ipa2_get_ep_mapping(client_idx);
@@ -1620,6 +1621,7 @@ int ipa_q6_monitor_holb_mitigation(bool enable)
			ipa_uc_monitor_holb(client_idx, enable);
		}
	}
	IPA2_ACTIVE_CLIENTS_DEC_SIMPLE();

	return 0;
}