summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRong Chang <rongchang@chromium.org>2012-08-05 20:14:50 +0800
committerGerrit <chrome-bot@google.com>2012-08-06 00:05:51 -0700
commit1a6a7336be42978d23acd9337e4531eff27b9aa0 (patch)
tree4fd31fc77eec6ba853ef0613fc6d6d6faf8ae32a
parentcf20b3e4f0852ff3d467ee1c4553bbd5a0cf6f09 (diff)
downloadchrome-ec-1a6a7336be42978d23acd9337e4531eff27b9aa0.tar.gz
Fix stm32 i2c timeout debug message
The i2c timeout error message is false positive warning. It happened when wait_status() function got a good result, but took too long to complete (> 1ms). This warning message can be removed safely. Signed-off-by: Rong Chang <rongchang@chromium.org> BUG=chrome-os-partner:9759,12222 TEST=none Change-Id: I2a670b76a5d741dc82ea59eacc233c4719eb3263 Reviewed-on: https://gerrit.chromium.org/gerrit/29254 Commit-Ready: Rong Chang <rongchang@chromium.org> Tested-by: Rong Chang <rongchang@chromium.org> Reviewed-by: Vic Yang <victoryang@chromium.org>
-rw-r--r--chip/stm32/i2c.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/chip/stm32/i2c.c b/chip/stm32/i2c.c
index c2acb293e7..52c72bfc6e 100644
--- a/chip/stm32/i2c.c
+++ b/chip/stm32/i2c.c
@@ -405,9 +405,6 @@ static int wait_status(int port, uint32_t mask, enum wait_t wait)
r = STM32_I2C_SR1(port);
}
- if (t2.val - t1.val > 1000)
- CPRINTF("timeout=%dus\n", (unsigned)t2.val - (unsigned)t1.val);
-
return EC_SUCCESS;
}