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

Commit 817680ab authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Matt Wagantall
Browse files

power: qpnp-smbcharger: always set high current when setting ICL



Currently the charger driver does not override the APSD results. This
can cause issues when trying to set lower currents like 500/900mA when
the charger chip is in high current mode.

Fix this by always setting the high current register when overwriting
the ICL.

CRs-Fixed: 809138
Change-Id: Ic07b911bd1c35d072650bfc43bf57917be0a8758
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 53978a7f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1441,8 +1441,8 @@ static int smbchg_set_usb_current_max(struct smbchg_chip *chip,
		goto out;
	}

	rc = smbchg_set_high_usb_chg_current(chip, current_ma);
out:
	rc = smbchg_set_high_usb_chg_current(chip, current_ma);
	pr_smb(PR_STATUS, "usb current set to %d mA\n",
			chip->usb_max_current_ma);
	if (rc < 0)