Revert "(CR): modules: vision station WHITE MASK test failed"

As qc2.0 detected process will increase vbus to 9V, so
icl*vbus=13.5W, so it will report turbo charger in detected
process, so revert it.

Mot-CRs-Fixed:(CR)

This reverts commit 8c22d82f275e606fd1e508181265cf5e05a665fe.

Change-Id: I0a553d2118df5da06dc339c110f1c5d5da435334
Reviewed-on: https://gerrit.mot.com/2367715
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Haijian Ma 2022-08-22 10:31:24 +08:00
commit 43becf6677

View file

@ -2526,10 +2526,8 @@ static int mmi_discrete_get_chg_info(void *data, struct mmi_charger_info *chg_in
if (rc < 0)
mmi_err(chip, "Couldn't read usb voltage rc=%d\n", rc);
vbus = (val.intval /1000 + 500) /1000;
if ((usb_type != POWER_SUPPLY_TYPE_USB) && (usb_type != POWER_SUPPLY_TYPE_USB_CDP)) {
if (chip->chg_info.chrg_pmax_mw < (usb_icl * vbus / 1000))
chip->chg_info.chrg_pmax_mw = usb_icl * vbus / 1000;
}
if (chip->chg_info.chrg_pmax_mw < (usb_icl * vbus / 1000))
chip->chg_info.chrg_pmax_mw = usb_icl * vbus / 1000;
rc = 0;
goto completed;