diff options
| author | Ravinder Konka <rkonka@codeaurora.org> | 2016-03-02 21:47:24 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-25 16:02:56 -0700 |
| commit | 35bf07444ad8256a14836f9b2cbf6a14fa041ac4 (patch) | |
| tree | 519035d0c09364321697decc2fcadec2d1b4afb9 /drivers/platform/msm | |
| parent | 0f31b83fcffa50016a08e3b1de1882ebf5f6dafb (diff) | |
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 <cpratapa@qti.qualcomm.com>
Signed-off-by: Ravinder Konka <rkonka@codeaurora.org>
Diffstat (limited to 'drivers/platform/msm')
| -rw-r--r-- | drivers/platform/msm/ipa/ipa_v2/ipa.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |
