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

Commit 3b6e80ef authored by Anirudh Ghayal's avatar Anirudh Ghayal Committed by Gerrit - the friendly Code Review server
Browse files

power: qpnp-qg: Keep GOOD_OCV interrupt enabled at boot



GOOD_OCV interrupt is expected to be enabled in active-state
and disabled in sleep (@ suspend). Hence, keep it enabled at
boot, the logic to disable/enable in suspend/resume already
exists.

Change-Id: Ifb21caf0531fdf042d46a8fd906cb4e067e9910e
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent d18a2e31
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -2865,10 +2865,6 @@ static int qg_post_init(struct qpnp_qg *chip)
				PROFILE_IRQ_DISABLE, true, 0);
		vote(chip->good_ocv_irq_disable_votable,
				PROFILE_IRQ_DISABLE, true, 0);
	} else {
		/* disable GOOD_OCV IRQ at init */
		vote(chip->good_ocv_irq_disable_votable,
				QG_INIT_STATE_IRQ_DISABLE, true, 0);
	}

	/* restore ESR data */