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

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

power: qpnp-fg: reschedule update_sram_data only after first update



Currently, when the charging status changes and the last update
of SRAM parameters has been done before 5 seconds,
update_sram_data is rescheduled immediately. However that should
be allowed only after the first SRAM update completes. Fix it.

CRs-Fixed: 885280
Change-Id: Id8a6f72517422dd60fcce9a51f86ef245d59751a
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 920c69c3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3258,7 +3258,7 @@ static void status_change_work(struct work_struct *work)
		}
	}

	if (chip->prev_status != chip->status) {
	if (chip->prev_status != chip->status && chip->last_sram_update_time) {
		get_current_time(&current_time);
		/*
		 * When charging status changes, update SRAM parameters if it