From: xuwei9 Date: Mon, 18 Mar 2019 06:16:02 +0000 (+0800) Subject: kernel: charger thermal level log X-Git-Tag: MMI-RSA31.Q1-48-36-11~169 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f7fcb550a12d2689735cb4b3ae233b0a471e577d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git kernel: charger thermal level log charger thermal current level log Change-Id: If932cb55f304a5903121ed283503ec10d3c16fc7 Signed-off-by: xuwei9 Reviewed-on: https://gerrit.mot.com/1322036 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- diff --git a/drivers/power/supply/s2mu00x_battery.c b/drivers/power/supply/s2mu00x_battery.c index bf71b7d13169..16e946f1c68a 100644 --- a/drivers/power/supply/s2mu00x_battery.c +++ b/drivers/power/supply/s2mu00x_battery.c @@ -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));