kernel: charger thermal level log
authorxuwei9 <xuwei9@lenovo.com>
Mon, 18 Mar 2019 06:16:02 +0000 (14:16 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:31:56 +0000 (17:31 +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 bf71b7d13169e0dc9b51311f0b4b393fd197360a..16e946f1c68a0ae96571b9dc0b86d7187932fab4 100644 (file)
@@ -2733,8 +2733,6 @@ create_attrs_succeed:
        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;
@@ -2743,6 +2741,8 @@ create_attrs_succeed:
                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));