summaryrefslogtreecommitdiffstats
path: root/src/usr/i2c
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2018-08-23 16:04:10 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2018-08-29 08:28:13 -0500
commit00185ccfdd81527f875bd59021456e156e72ddd0 (patch)
treea439f5bd28b8a28ec3b9db72f48774162a1f15f3 /src/usr/i2c
parent8aacdb878830624870139ce11d20c3d0a666481c (diff)
downloadtalos-hostboot-00185ccfdd81527f875bd59021456e156e72ddd0.tar.gz
talos-hostboot-00185ccfdd81527f875bd59021456e156e72ddd0.zip
Increase i2c timeout to 20ms
We know of a chip coming up that implements extreme clock stretching of at least 13ms, so bumping up our timeout to 20ms so we aren't surprised later on. Change-Id: Iadd5d88d1570aefa09398a9641964c812f1f729c Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/65125 Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Disable-CI: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/i2c')
-rwxr-xr-xsrc/usr/i2c/i2c.H2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/i2c/i2c.H b/src/usr/i2c/i2c.H
index 91506a482..dfc79d2d2 100755
--- a/src/usr/i2c/i2c.H
+++ b/src/usr/i2c/i2c.H
@@ -133,7 +133,7 @@ ALWAYS_INLINE inline uint64_t i2cGetPollingInterval(uint64_t i_bus_speed_khz )
* @brief Determine I2C Timeout Count based on I2C_MAX_WAIT_TIME_NS and
* I2C Polling Interval (in ns)
*/
-#define I2C_MAX_WAIT_TIME_NS 5 * NS_PER_MSEC
+#define I2C_MAX_WAIT_TIME_NS (20 * NS_PER_MSEC)
#define I2C_TIMEOUT_COUNT(i_interval_ns) (I2C_MAX_WAIT_TIME_NS / i_interval_ns)
/**
OpenPOWER on IntegriCloud