mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
smb5-lib: Remove Force_5V setting in PD active
PD adapter allowance voltage was setted to FORCE_5V, that cause PD can't charge under the vbus up to 9v this issue is introduced by QCom Rebase. use QCOM_BASE to isolate FORCE_5V setting in PD active Change-Id: I73d925b87e657f62516d7d3ee475f4ef0306195d Signed-off-by: xuwt2 <xuwt2@lenovo.com> Reviewed-on: https://gerrit.mot.com/1460627 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com> Reviewed-by: Haijian Ma <mahj8@motorola.com> Reviewed-by: Yonghua Yan <yanyh2@motorola.com> Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/1770256 Reviewed-by: Huosheng Liao <liaohs@motorola.com>
This commit is contained in:
parent
c6b24a9e8b
commit
1baac9bfe0
1 changed files with 2 additions and 0 deletions
|
|
@ -4836,8 +4836,10 @@ int smblib_set_prop_pd_active(struct smb_charger *chg,
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef QCOM_BASE
|
||||
smblib_usb_pd_adapter_allowance_override(chg,
|
||||
!!chg->pd_active ? FORCE_5V : FORCE_NULL);
|
||||
#endif
|
||||
smblib_update_usb_type(chg);
|
||||
|
||||
if (chg->real_charger_type == POWER_SUPPLY_TYPE_USB &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue