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

Commit c319a72b 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: fix parallel charging first enable"

parents a7f509ba 4bf54be3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1574,7 +1574,9 @@ static bool smbchg_is_parallel_usb_ok(struct smbchg_chip *chip)

	kt_since_last_disable = ktime_sub(ktime_get_boottime(),
					chip->parallel.last_disabled);
	if (chip->parallel.enabled_once && ktime_to_ms(kt_since_last_disable)
	if (chip->parallel.current_max_ma == 0
		&& chip->parallel.enabled_once
		&& ktime_to_ms(kt_since_last_disable)
			< PARALLEL_REENABLE_TIMER_MS) {
		pr_smb(PR_STATUS, "Only been %lld since disable, skipping\n",
				ktime_to_ms(kt_since_last_disable));