From 35bf07444ad8256a14836f9b2cbf6a14fa041ac4 Mon Sep 17 00:00:00 2001 From: Ravinder Konka Date: Wed, 2 Mar 2016 21:47:24 +0530 Subject: [PATCH] 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: Chaitanya Pratapa Signed-off-by: Ravinder Konka --- drivers/platform/msm/ipa/ipa_v2/ipa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/platform/msm/ipa/ipa_v2/ipa.c b/drivers/platform/msm/ipa/ipa_v2/ipa.c index c968eeec43a2..8bc0a9fc38d5 100644 --- a/drivers/platform/msm/ipa/ipa_v2/ipa.c +++ b/drivers/platform/msm/ipa/ipa_v2/ipa.c @@ -1,4 +1,4 @@ -/* 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; }