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

Commit ef57b52b authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg-gen4: Fix disabling mem_attn interrupt



Currently, mem_attn interrupt is enabled whenever parallel
current summing configuration needs to be changed which is based
on the input presence or charge termination. It is disabled once
the configuration is complete. However, when there is frequent
changes in charging status or input presence, parallel current
summing configuration stays unaffected leaving mem_attn interrupt
enabled for longer duration. Fix it.

Change-Id: I143b2ca73d1d39c4469f06786666478715d7b71d
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 94da5973
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3038,6 +3038,7 @@ static void pl_current_en_work(struct work_struct *work)
		return;

	vote(chip->parallel_current_en_votable, FG_PARALLEL_EN_VOTER, en, 0);
	vote(chip->mem_attn_irq_en_votable, MEM_ATTN_IRQ_VOTER, false, 0);
}

static void pl_enable_work(struct work_struct *work)
@@ -3677,7 +3678,6 @@ static int fg_parallel_current_en_cb(struct votable *votable, void *data,

	fg_dbg(fg, FG_STATUS, "Parallel current summing: %d\n", enable);

	vote(chip->mem_attn_irq_en_votable, MEM_ATTN_IRQ_VOTER, false, 0);
	return rc;
}