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

Commit 3839a953 authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: qpnp-qg: Fix the sleep_length value in process_suspend



The S3 sleep-length register uses a 0-based offset, hence
add a +1 to get its actual value.

Change-Id: I742a7950f9fc53f17cb6f210f2b7f06ade842013
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 5c2bab70
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4427,6 +4427,7 @@ static int process_suspend(struct qpnp_qg *chip)
		return rc;
	}
	sleep_fifo_length &= SLEEP_IBAT_QUALIFIED_LENGTH_MASK;
	sleep_fifo_length++;

	if (chip->dt.qg_sleep_config) {
		qg_dbg(chip, QG_DEBUG_STATUS, "Suspend: Forcing S2_SLEEP\n");