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

Commit 2447b99f authored by Osvaldo Banuelos's avatar Osvaldo Banuelos
Browse files

regulator: kryo-regulator: disregard M3 LPM counters in notifier path



LPM entry/exit notification for M4M is broken. The Kryo regulator driver
attempts to guarantee correctness by maintaining cached copies of M4M
entry/exit count, but under some circumstances a spurious exit notification
is received without first receiving an M3 entry notification. Remove this
safeguard check until the problem is root caused.

Change-Id: Iba6f2b4dbcc18c977b3cb40fbe44eb8dc485dd4f
Signed-off-by: default avatarOsvaldo Banuelos <osvaldob@codeaurora.org>
parent 3d692a3b
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -916,12 +916,6 @@ static int kryo_regulator_lpm_resume(struct kryo_regulator *kvreg)
	kvreg->lpm_exit_count++;
	spin_unlock_irqrestore(&kvreg->slock, flags);

	if (kvreg->lpm_exit_count != kvreg->lpm_enter_count) {
		kvreg_err(kvreg, "LPM entry/exit counter mismatch, this is not expected: enter=%lx exit=%lx\n",
			  kvreg->lpm_enter_count, kvreg->lpm_exit_count);
		BUG_ON(1);
	}

	return NOTIFY_OK;
}