charge:geneva disable wireless log

because no wireless ,so disable qti_wireless_charge_dump_info
add a switch (chg->wls_psy),have wireless enable dump
no wireless disable dump

Change-Id: Ifade061cbc33f2b64bca6633b5816a5db705ff4c
Reviewed-on: https://gerrit.mot.com/2399623
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
tinno 36 2022-10-09 19:22:06 +08:00 • committed by tinno36
commit fbcc521698

View file

@ -730,11 +730,13 @@ static int qti_charger_get_chg_info(void *data, struct mmi_charger_info *chg_inf
chg->chg_info.lpd_present = chg->lpd_info.lpd_present;
memcpy(chg_info, &chg->chg_info, sizeof(struct mmi_charger_info));
qti_charger_read(chg, OEM_PROP_WLS_DUMP_INFO,
&wls_info,
sizeof(struct wls_dump));
if (chg->wls_psy){
qti_charger_read(chg, OEM_PROP_WLS_DUMP_INFO,
&wls_info,
sizeof(struct wls_dump));
qti_wireless_charge_dump_info(chg, wls_info);
qti_wireless_charge_dump_info(chg, wls_info);
}
bm_ulog_print_log(OEM_BM_ULOG_SIZE);
@ -915,13 +917,15 @@ static void qti_charger_set_constraint(void *data,
chg->constraint.pd_pmax = constraint->pd_pmax;
}
if (constraint->wls_pmax != chg->constraint.wls_pmax) {
value = constraint->wls_pmax;
rc = qti_charger_write(chg, OEM_PROP_CHG_WLS_PMAX,
&value,
sizeof(value));
if (!rc)
chg->constraint.wls_pmax = constraint->wls_pmax;
if (chg->wls_psy){
if (constraint->wls_pmax != chg->constraint.wls_pmax) {
value = constraint->wls_pmax;
rc = qti_charger_write(chg, OEM_PROP_CHG_WLS_PMAX,
&value,
sizeof(value));
if (!rc)
chg->constraint.wls_pmax = constraint->wls_pmax;
}
}
}