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

Commit 0a4cd421 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: smblite: Fix ICL vote value for die temp regulation"

parents 3c1bac82 16171c70
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -3000,9 +3000,6 @@ static void smblite_lib_thermal_regulation_work(struct work_struct *work)

	/* check if DIE_TEMP is below LB */
	if (!(stat & DIE_TEMP_MASK)) {
		icl_ua += THERM_REGULATION_STEP_UA;
		vote(chg->usb_icl_votable, SW_THERM_REGULATION_VOTER,
				true, icl_ua);

		/*
		 * Check if we need further increments:
@@ -3011,9 +3008,13 @@ static void smblite_lib_thermal_regulation_work(struct work_struct *work)
		 * ICL then remove vote and exit work.
		 */
		if (!strcmp(get_effective_client(chg->usb_icl_votable),
				SW_THERM_REGULATION_VOTER))
				SW_THERM_REGULATION_VOTER)) {
			icl_ua += THERM_REGULATION_STEP_UA;
			vote(chg->usb_icl_votable, SW_THERM_REGULATION_VOTER,
					true, icl_ua);
			goto reschedule;
		}
	}

exit:
	smblite_lib_dbg(chg, PR_MISC,