From c12db773b50a5bc651393ad1692e3f980c2e2d7a Mon Sep 17 00:00:00 2001 From: Ryan Lattrel Date: Tue, 12 May 2020 16:45:27 +0800 Subject: [PATCH] (CR): drivers: enable step-wise and qmi tz logs Change step-wise temperature trip and qmi cdev logging from debug to warning to better track thermal engine changes. Change-Id: Ieaf0c3b796e2aa321220ba2e0adb3b9f24c41d5b Signed-off-by: Ryan Lattrel Reviewed-on: https://gerrit.mot.com/1339510 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Kenneth Kessler Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/1554966 Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Reviewed-on: https://gerrit.mot.com/1778283 --- drivers/thermal/qcom/qmi_cooling.c | 2 +- drivers/thermal/step_wise.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/qcom/qmi_cooling.c b/drivers/thermal/qcom/qmi_cooling.c index 22a0ee9ac2c5..d4077ae421ae 100644 --- a/drivers/thermal/qcom/qmi_cooling.c +++ b/drivers/thermal/qcom/qmi_cooling.c @@ -173,7 +173,7 @@ static int qmi_tmd_send_state_request(struct qmi_cooling_device *qmi_cdev, goto qmi_send_exit; } ret = 0; - pr_debug("Requested qmi state:%d for %s\n", state, qmi_cdev->cdev_name); + pr_warn("Requested qmi state:%d for %s\n", state, qmi_cdev->cdev_name); qmi_send_exit: mutex_unlock(&tmd->mutex); diff --git a/drivers/thermal/step_wise.c b/drivers/thermal/step_wise.c index 8978951c03b4..0f73f04a0409 100644 --- a/drivers/thermal/step_wise.c +++ b/drivers/thermal/step_wise.c @@ -188,8 +188,11 @@ static void update_passive_instance(struct thermal_zone_device *tz, * If value is +1, activate a passive instance. * If value is -1, deactivate a passive instance. */ - if (type == THERMAL_TRIP_PASSIVE || type == THERMAL_TRIPS_NONE) + if (type == THERMAL_TRIP_PASSIVE || type == THERMAL_TRIPS_NONE) { tz->passive += value; + dev_warn(&tz->device, "[%s] temp=%d, passive=%d\n", + tz->type, tz->temperature, tz->passive); + } } #ifdef CONFIG_QTI_THERMAL