codecs: Enable clock voting logs to debug AHB/NOC issues
Enable clock voting logs to debug stability issues. Change-Id: Ie1f995ab004778a81ea42baad15ea36858407e9a Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
d155d7f509
commit
236ff485d2
@@ -994,6 +994,7 @@ static int wsa_macro_event_handler(struct snd_soc_component *component,
|
||||
|
||||
switch (event) {
|
||||
case BOLERO_MACRO_EVT_SSR_DOWN:
|
||||
trace_printk("%s, enter SSR down\n", __func__);
|
||||
if (wsa_priv->swr_ctrl_data) {
|
||||
swrm_wcd_notify(
|
||||
wsa_priv->swr_ctrl_data[0].wsa_swr_pdev,
|
||||
@@ -1013,6 +1014,7 @@ static int wsa_macro_event_handler(struct snd_soc_component *component,
|
||||
}
|
||||
break;
|
||||
case BOLERO_MACRO_EVT_SSR_UP:
|
||||
trace_printk("%s, enter SSR up\n", __func__);
|
||||
/* reset swr after ssr/pdr */
|
||||
wsa_priv->reset_swr = true;
|
||||
/* enable&disable WSA_CORE_CLK to reset GFMUX reg */
|
||||
@@ -2830,6 +2832,9 @@ static int wsa_swrm_clock(void *handle, bool enable)
|
||||
|
||||
mutex_lock(&wsa_priv->swr_clk_lock);
|
||||
|
||||
trace_printk("%s: %s swrm clock %s\n",
|
||||
dev_name(wsa_priv->dev), __func__,
|
||||
(enable ? "enable" : "disable"));
|
||||
dev_dbg(wsa_priv->dev, "%s: swrm clock %s\n",
|
||||
__func__, (enable ? "enable" : "disable"));
|
||||
if (enable) {
|
||||
@@ -2895,6 +2900,9 @@ static int wsa_swrm_clock(void *handle, bool enable)
|
||||
}
|
||||
}
|
||||
}
|
||||
trace_printk("%s: %s swrm clock users: %d\n",
|
||||
dev_name(wsa_priv->dev), __func__,
|
||||
wsa_priv->swr_clk_users);
|
||||
dev_dbg(wsa_priv->dev, "%s: swrm clock users %d\n",
|
||||
__func__, wsa_priv->swr_clk_users);
|
||||
exit:
|
||||
|
Reference in New Issue
Block a user