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

Commit 748c3668 authored by Kavya Nunna's avatar Kavya Nunna Committed by Gerrit - the friendly Code Review server
Browse files

power: vm-bms: Skip SOC monitoring logic for a debug-board



On detecting a debug-board a fixed SOC is reported, hence
there is no need of monitoring SOC changes.

Change-Id: I4d54e30f734564b8048c18a1cb9b52e31e0b3efa
Signed-off-by: default avatarKavya Nunna <knunna@codeaurora.org>
parent d1a99118
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2102,6 +2102,10 @@ static void monitor_soc_work(struct work_struct *work)
				monitor_soc_work.work);
	int rc, new_soc = 0, batt_temp;

	/*skip if its a debug-board */
	if (is_debug_batt_id(chip))
		return;

	bms_stay_awake(&chip->vbms_soc_wake_source);

	calculate_delta_time(&chip->tm_sec, &chip->delta_time_s);