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

Commit 76ecf7db authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Harry Yang
Browse files

qpnp-qnovo: initialize chg_ready votable



If a charger was already present at bootup, we may not delay the start
of qnovo by 15 seconds.

Fix it by setting the chg_ready votable to false during init.

Change-Id: Icf185763576f65028cf2ef0d1c0bbcf6570460ba
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent b75a4f48
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1455,6 +1455,9 @@ static int qnovo_hw_init(struct qnovo *chip)
	u8 vadc_offset, vadc_gain;
	u8 val;

	vote(chip->chg_ready_votable, USB_READY_VOTER, false, 0);
	vote(chip->chg_ready_votable, DC_READY_VOTER, false, 0);

	vote(chip->disable_votable, USER_VOTER, true, 0);
	vote(chip->disable_votable, FG_AVAILABLE_VOTER, true, 0);