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:
Meng Wang 2019-03-12 10:06:00 +08:00 • committed by Gerrit - the friendly Code Review server
commit e59703ce4e

View file

@ -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);