mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
smb5-lib: Update USB ICL for USB phy speed
Override the SDP current if it needs to increase for SDP USB2.0 500mA or USB3.0 900mA. Porting from (CR) Change-Id: Ib0136a2674e8f9ac6e7e5646a82052971a4bbf08 Reviewed-on: https://gerrit.mot.com/1836523 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Haijian Ma <mahj8@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
517749f766
commit
56a85f8a0d
1 changed files with 5 additions and 1 deletions
|
|
@ -5950,7 +5950,11 @@ static void update_sw_icl_max(struct smb_charger *chg, int val)
|
|||
/* rp-std or legacy, USB BC 1.2 */
|
||||
switch (val) {
|
||||
case POWER_SUPPLY_TYPE_USB:
|
||||
vote(chg->usb_icl_votable, USB_PSY_VOTER, true, SDP_CURRENT_UA);
|
||||
if (get_client_vote(chg->usb_icl_votable,
|
||||
USB_PSY_VOTER) < SDP_CURRENT_UA) {
|
||||
vote(chg->usb_icl_votable, USB_PSY_VOTER, true,
|
||||
SDP_CURRENT_UA);
|
||||
}
|
||||
vote(chg->usb_icl_votable, SW_ICL_MAX_VOTER, false, 0);
|
||||
break;
|
||||
case POWER_SUPPLY_TYPE_USB_CDP:
|
||||
|
|
|
|||
Loading…
Reference in a new issue