mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
charge: Fix some charger can't boost VBUS
The charging power is too low after repeatedly inserting and removing the moto 33W charger. Because the charger can't boost VBUS by DP(D+) pulses when the DM(D-) 0V time is too short. So add a 100ms delay before we want send the DP pulse. Change-Id: I36ba617b01a1115e9d7bca78773c715d5f73dcc3 Signed-off-by: Guocheng Wang <wanggc6@motorola.com> Reviewed-on: https://gerrit.mot.com/2747942 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Reviewed-by: Haijian Ma <mahj8@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
496cb2c408
commit
521d0a8ec9
1 changed files with 1 additions and 0 deletions
|
|
@ -2212,6 +2212,7 @@ static int mmi_increase_vbus_power(struct smb_mmi_charger *chg, int cur_mv)
|
|||
|
||||
chg->inc_hvdcp_cnt = HVDCP_PULSE_COUNT_MAX;
|
||||
vote(chg->chg_dis_votable, MMI_HB_VOTER, true, 0);
|
||||
msleep(100);
|
||||
|
||||
while (cur_mv < HVDCP_VOLTAGE_NOM && pulse_cnt < chg->inc_hvdcp_cnt) {
|
||||
val.intval = QTI_POWER_SUPPLY_DP_DM_DP_PULSE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue