(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 <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1339510
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1554966
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-on: https://gerrit.mot.com/1778283
This commit is contained in:
Ryan Lattrel 2020-05-12 16:45:27 +08:00 • committed by Xiaojun Ji
commit c12db773b5
2 changed files with 5 additions and 2 deletions

View file

@ -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);

View file

@ -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