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

Commit 13bdd014 authored by Nicholas Troast's avatar Nicholas Troast
Browse files

power: smb-lib: let userspace rerun AICL for PD and PPS



Currently AICL will be rerun whenever PD requests a voltage increase.
While this works in most cases it can become problematic if PD requests
the same voltage twice, and the ICL may fall to ICL_MIN.

Since the voltage requests originate in the userspace it would be less
error prone to allow the userspace to rerun AICL instead. Do it.

Change-Id: Id190564e28bcffd72a1de70fa1327fce3e40299e
Signed-off-by: default avatarNicholas Troast <ntroast@codeaurora.org>
parent e7f29456
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -2491,10 +2491,6 @@ int smblib_set_prop_usb_voltage_max(struct smb_charger *chg,
	}

	chg->voltage_max_uv = max_uv;
	rc = smblib_rerun_aicl(chg);
	if (rc < 0)
		smblib_err(chg, "Couldn't re-run AICL rc=%d\n", rc);

	return rc;
}