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>
This commit is contained in:
parent
0f31b83fcf
commit
35bf07444a
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue