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

Commit f5733a61 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: wcd934x: Reset power_active_ref to 0 when it is negative" into audio-drivers.lnx.2.0

parents 3237a393 73c9a214
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -8989,8 +8989,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;
	}