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

Commit 46b2cfaf authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

msm: thermal: fix VDD restriction monitor not enabled case



KTM VDD restriction monitor is disabled if VDD apps node is not
defined or any issue in VDD apps device initialization. There are
some targets where VDD apps is not required, but vdd restriction
for other rails are still required.

Remove tight dependency on VDD apps for KTM VDD restriction monitor.

CRs-Fixed: 2064557
Change-Id: I0eea903ce782611b7d5d826732477e0bc07c57c2
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 271134ac
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4502,7 +4502,8 @@ static void thermal_monitor_init(void)
	if (vdd_rstr_enabled) {
		if (vdd_rstr_apss_freq_dev_init())
			pr_err("vdd APSS mitigation device init failed\n");
		else if (!(convert_to_zone_id(&thresh[MSM_VDD_RESTRICTION])))

		if (!(convert_to_zone_id(&thresh[MSM_VDD_RESTRICTION])))
			therm_set_threshold(&thresh[MSM_VDD_RESTRICTION]);
	}