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

Commit 1acdfd1b authored by Ashay Jaiswal's avatar Ashay Jaiswal Committed by Gerrit - the friendly Code Review server
Browse files

power: qpnp-fg: fix wake-up source for gain compensation



Incorrect wakeup source was acquired before scheduling iadc gain
compensation. Fix the same.

Change-Id: I439c1c20d71a72ef9ab02fc916fa8c0dae03ea0a
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent 5dc9dbd3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3846,7 +3846,7 @@ static irqreturn_t fg_soc_irq_handler(int irq, void *_chip)
		schedule_work(&chip->charge_full_work);
	if (chip->wa_flag & IADC_GAIN_COMP_WA
			&& chip->iadc_comp_data.gain_active) {
		fg_stay_awake(&chip->resume_soc_wakeup_source);
		fg_stay_awake(&chip->gain_comp_wakeup_source);
		schedule_work(&chip->gain_comp_work);
	}