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

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

Merge "power: qpnp-smbcharger: don't adjust VFloat when JEITA is active"

parents 7cf69aa8 ac943950
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3712,6 +3712,11 @@ static void smbchg_vfloat_adjust_work(struct work_struct *work)
		goto stop;
	}

	if (get_prop_batt_health(chip) != POWER_SUPPLY_HEALTH_GOOD) {
		pr_smb(PR_STATUS, "JEITA active, skipping\n");
		goto reschedule;
	}

	set_property_on_fg(chip, POWER_SUPPLY_PROP_UPDATE_NOW, 1);
	rc = get_property_from_fg(chip,
			POWER_SUPPLY_PROP_VOLTAGE_NOW, &vbat_uv);