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:
Guocheng Wang 2023-09-21 16:45:42 +08:00 • committed by Huosheng Liao
commit 521d0a8ec9

View file

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