Skip to content

Commit

Permalink
Increase i2c timeout to 20ms
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dcrowell77 authored and wghoffa committed Aug 29, 2018
1 parent 8aacdb8 commit 00185cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/i2c/i2c.H
Original file line number Diff line number Diff line change
Expand Up @@ -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)

/**
Expand Down

0 comments on commit 00185cc

Please sign in to comment.