power: qpnp-smbcharger-mmi: Disable Force Votables

On Factory Mode, PMIC module votes on having high charging current,
interpreting USB cable as a Turbo Charger. Setting vote to OFF(0) will reset
such behavior, and will display Toast message correctly only when a Turbo
Charger is plugged.

Based on https://gerrit.mot.com/#/c/1325224/

Change-Id: I3661e6f093d284ce244435b71340d0f7ec56b6ec
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1387920
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Cesar Santos 2019-07-18 15:04:18 -03:00 • committed by Cesar Augusto Marcelino dos Santos
commit a878ec13cd

View file

@ -3852,11 +3852,6 @@ static int smb_mmi_probe(struct platform_device *pdev)
pmic_vote_force_val_set(chip->fv_votable, 4400000);
pmic_vote_force_active_set(chip->fv_votable, 1);
}
if(chip->usb_icl_votable) {
pmic_vote_force_val_set(chip->usb_icl_votable,
3000000);
pmic_vote_force_active_set(chip->usb_icl_votable, 1);
}
/* Some Cables need a more forced approach */
rc = smblib_set_charge_param(chip, &chip->param.usb_icl,