Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e59703ce authored by Meng Wang's avatar Meng Wang Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarMeng Wang <mengw@codeaurora.org>
parent b1a49c6b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);