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

Commit b4128899 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: bcl_peripheral: Account derated threshold for false trigger"

parents 80221224 d4cdfa3f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -662,6 +662,8 @@ static irqreturn_t bcl_handle_ibat(int irq, void *data)
			pr_err("Error clearing max/min reg. err:%d\n", ret);
		thresh_value = perph_data->high_trip;
		convert_adc_to_ibat_val(&thresh_value);
		/* Account threshold trip from PBS threshold for dead time */
		thresh_value -= perph_data->inhibit_derating_ua;
		if (perph_data->trip_val < thresh_value) {
			pr_debug("False Ibat high trip. ibat:%d ibat_thresh_val:%d\n",
				perph_data->trip_val, thresh_value);