summaryrefslogtreecommitdiff
path: root/common/thermal.c
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2012-03-01 14:07:31 -0800
committerVic Yang <victoryang@chromium.org>2012-03-01 16:19:54 -0800
commit1db93690d9b3fed1690f6645408384451c42519b (patch)
treec741ff4208156eca5f0a0dbdb0f109baa694cc0d /common/thermal.c
parent1776aef9f512c2f9cdef5b0eaead8413e9237898 (diff)
downloadchrome-ec-1db93690d9b3fed1690f6645408384451c42519b.tar.gz
Report error when PECI temperature read fails.
We used to have flaky PECI temperature read so we ignored failure. Now the PECI temperature read seems to work fine so we should have it report error on failure. Signed-off-by: Vic Yang <victoryang@chromium.org> BUG=chrome-os-partner:7493 TEST=When powered off, 'temps' shows error on PECI temperature reading. Change-Id: I161a8f84f66ba06959c21838ee364b2f8d8b4945
Diffstat (limited to 'common/thermal.c')
-rw-r--r--common/thermal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/thermal.c b/common/thermal.c
index b1f492e408..63b28aae53 100644
--- a/common/thermal.c
+++ b/common/thermal.c
@@ -144,10 +144,8 @@ static void thermal_process(void)
continue;
cur_temp = temp_sensor_read(i);
+
/* Sensor failure. */
- /* TODO: PECI temperature sensor is currently flaky and thus
- * sensor failure is now ignored. Change this when we have
- * reliable PECI temperature sensor. */
if (cur_temp == -1) {
if (flag & THERMAL_CONFIG_WARNING_ON_FAIL)
smi_sensor_failure_warning();