ASoC: wcd934x: Reset power_active_ref to 0 when it is negative
Reset power_active_ref counter to 0 when it is negative to take digital core out of reset during next session. Change-Id: I724ffe6e3547655424238ca02a9bf8ac24b101fe Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
4cc52a2bed
commit
da08f2f315
@@ -9002,8 +9002,10 @@ static int tavil_dig_core_power_collapse(struct tavil_priv *tavil,
|
|||||||
goto unlock_mutex;
|
goto unlock_mutex;
|
||||||
|
|
||||||
if (tavil->power_active_ref < 0) {
|
if (tavil->power_active_ref < 0) {
|
||||||
dev_dbg(tavil->dev, "%s: power_active_ref is negative\n",
|
dev_dbg(tavil->dev,
|
||||||
|
"%s: power_active_ref is negative, reset it\n",
|
||||||
__func__);
|
__func__);
|
||||||
|
tavil->power_active_ref = 0;
|
||||||
goto unlock_mutex;
|
goto unlock_mutex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user