charger:duplicated apsd detection at pmi632

Pmic632 conduct apsd detection twice
which influence performance.

Change-Id: I94d49e763f889c7e5daaa4da2f8c49b929179b3b
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1592845
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
xuwei9 authored and Gilberto Gambugge committed 2023-06-01 00:47:11 -03:00
1 parent a71ce7f2a6
commit 76b9b7d23f
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -2383,6 +2383,7 @@ static int smb5_batt_prop_is_writeable(struct power_supply *psy,
case POWER_SUPPLY_PROP_STEP_CHARGING_ENABLED:
case POWER_SUPPLY_PROP_DIE_HEALTH:
case POWER_SUPPLY_PROP_BATTERY_CHARGING_ENABLED:
case POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT:
return 1;
default:
break;
@@ -3276,7 +3277,6 @@ static int smb5_init_connector_type(struct smb_charger *chg)
*/
if (chg->chg_param.smb_version == PMI632_SUBTYPE) {
schgm_flash_init(chg);
smblib_rerun_apsd_if_required(chg);
}
return 0;
+3 -1
View File
@@ -7439,6 +7439,9 @@ irqreturn_t dc_plugin_irq_handler(int irq, void *data)
vote(chg->fcc_votable, FCC_STEPPER_VOTER, !dcin_present,
dcin_present ? 0 : 1500000);
chg->mmi.dc_ebmax_current_ma = chg->mmi.dc_ebmax_current_ma_default;
chg->mmi.cl_ebsrc = chg->mmi.dc_ebmax_current_ma_default;
if (chg->dc_psy)
power_supply_changed(chg->dc_psy);
@@ -11063,7 +11066,6 @@ static ssize_t force_chg_usb_suspend_store(struct device *dev,
}
mmi_chip->mmi.force_chg_suspend = (bool)mode;
r = smblib_set_usb_suspend(mmi_chip, (bool)mode);
return r ? r : count;
}