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

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

Merge "power: smb-lib: Set charge current to 100mA when USB is not enumerated"

parents 974c809e 3c4945be
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2789,6 +2789,10 @@ static int smblib_handle_usb_current(struct smb_charger *chg,
			if (rc < 0)
				return rc;
		}
	} else if (chg->real_charger_type == POWER_SUPPLY_TYPE_USB &&
		usb_current == -ETIMEDOUT) {
		rc = vote(chg->usb_icl_votable, USB_PSY_VOTER,
					true, USBIN_100MA);
	} else {
		rc = vote(chg->usb_icl_votable, USB_PSY_VOTER,
					true, usb_current);