mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
asoc: bolero: remove mutex_lock in bolero_runtime_suspend
There can be deadlock between __bolero_reg_read/write and bolero_runtime_suspend. Remove the mutex_lock in bolero_runtime_suspend to avoid deadlock. Change-Id: I712b9f24adeddda8899b39f90291394965443163 Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:
parent
b1a49c6b67
commit
e59703ce4e
1 changed files with 0 additions and 2 deletions
|
|
@ -1049,13 +1049,11 @@ int bolero_runtime_suspend(struct device *dev)
|
|||
{
|
||||
struct bolero_priv *priv = dev_get_drvdata(dev->parent);
|
||||
|
||||
mutex_lock(&priv->clk_lock);
|
||||
if (priv->lpass_core_hw_vote != NULL)
|
||||
clk_disable_unprepare(priv->lpass_core_hw_vote);
|
||||
else
|
||||
dev_dbg(dev, "%s: Invalid lpass core hw node\n",
|
||||
__func__);
|
||||
mutex_unlock(&priv->clk_lock);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(bolero_runtime_suspend);
|
||||
|
|
|
|||
Loading…
Reference in a new issue