asoc: lpass-cdc: add ftrace log for NOC issue
Add ftrace log to debug NOC issues. When writing/reading lpass codec registers, add vote_lock to make sure clk is not disabled. Change-Id: I1df924d6aefee2899f7e5008851c1c324dabf62a Signed-off-by: Meng Wang <mengw@codeaurora.org>
这个提交包含在:

提交者
Gerrit - the friendly Code Review server

父节点
a39bae0a48
当前提交
2344f44b9c
@@ -709,6 +709,7 @@ static int lpass_cdc_va_macro_core_vote(void *handle, bool enable)
|
||||
pr_err("%s: va priv data is NULL\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
trace_printk("%s, enter: enable %d\n", __func__, enable);
|
||||
if (enable) {
|
||||
pm_runtime_get_sync(va_priv->dev);
|
||||
if (lpass_cdc_check_core_votes(va_priv->dev)) {
|
||||
@@ -722,6 +723,7 @@ static int lpass_cdc_va_macro_core_vote(void *handle, bool enable)
|
||||
pm_runtime_put_autosuspend(va_priv->dev);
|
||||
pm_runtime_mark_last_busy(va_priv->dev);
|
||||
}
|
||||
trace_printk("%s, leave\n", __func__);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户