kernel: charger thermal level log
authorxuwei9 <xuwei9@lenovo.com>
Mon, 18 Mar 2019 06:16:02 +0000 (14:16 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Mon, 10 Jun 2019 03:24:47 +0000 (11:24 +0800)
charger thermal current
level log

Change-Id: If932cb55f304a5903121ed283503ec10d3c16fc7
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1322036
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/power/supply/s2mu00x_battery.c

index fe50723ee1f2756c17d7f8de2e6ebc44fc94537c..da9518b698f41e460ef2814f0ad4b74647517c36 100644 (file)
@@ -2620,8 +2620,6 @@ static int smbchg_chg_system_temp_level_set(struct s2mu00x_battery_info *chip,
        if (lvl_sel == chip->chg_therm_lvl_sel)
                return 0;
 
-       pr_info("%s,set thermal level:%d", lvl_sel);
-
 //     mutex_lock(&chip->current_change_lock);
        prev_therm_lvl = chip->chg_therm_lvl_sel;
        chip->chg_therm_lvl_sel = lvl_sel;
@@ -2630,6 +2628,8 @@ static int smbchg_chg_system_temp_level_set(struct s2mu00x_battery_info *chip,
                chip->chg_thermal_mitigation[lvl_sel];
        chip->update_allowed_fastchg_current_ma = true;
 
+       pr_info("%s,set thermal level:%d\n",__func__,lvl_sel);
+
        cancel_delayed_work(&chip->heartbeat_work);
        schedule_delayed_work(&chip->heartbeat_work,
                              msecs_to_jiffies(0));