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

Commit 942b1f1f authored by qctecmdr's avatar qctecmdr 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 fee8073a 870449e6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2761,6 +2761,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);