Prechádzať zdrojové kódy

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 <[email protected]>
Meng Wang 6 rokov pred
rodič
commit
e59703ce4e
1 zmenil súbory, kde vykonal 0 pridanie a 2 odobranie
  1. 0 2
      asoc/codecs/bolero/bolero-cdc.c

+ 0 - 2
asoc/codecs/bolero/bolero-cdc.c

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