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:
xuwt2 2019-11-25 11:12:46 +08:00 • committed by Xiaojun Ji
commit 1baac9bfe0

View file

@ -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 &&