mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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:
parent
4cc52a2bed
commit
da08f2f315
1 changed files with 3 additions and 1 deletions
|
|
@ -9002,8 +9002,10 @@ static int tavil_dig_core_power_collapse(struct tavil_priv *tavil,
|
|||
goto unlock_mutex;
|
||||
|
||||
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__);
|
||||
tavil->power_active_ref = 0;
|
||||
goto unlock_mutex;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue