[Skiboot] [PATCH] libstb: bump up the byte timeout for tpm i2c requests

Claudio Carvalho cclaudio at linux.vnet.ibm.com
Fri Nov 11 15:35:35 AEDT 2016


This bumps up the byte timeout for tpm i2c requests from 10ms to 30ms.
Some p8dtu systems are getting i2c request timeout.

Signed-off-by: Claudio Carvalho <cclaudio at linux.vnet.ibm.com>
---
 libstb/drivers/tpm_i2c_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstb/drivers/tpm_i2c_interface.c b/libstb/drivers/tpm_i2c_interface.c
index 77a7ece..ba0c5a8 100644
--- a/libstb/drivers/tpm_i2c_interface.c
+++ b/libstb/drivers/tpm_i2c_interface.c
@@ -25,7 +25,7 @@
 //#define DBG(fmt, ...) prlog(PR_DEBUG, fmt, ##__VA_ARGS__)
 #define DBG(fmt, ...)
 
-#define I2C_BYTE_TIMEOUT_MS		10  /* 10ms/byte timeout */
+#define I2C_BYTE_TIMEOUT_MS		30  /* 30ms/byte timeout */
 #define TPM_MAX_NACK_RETRIES		 2
 #define REQ_COMPLETE_POLLING		 5  /* Check if req is complete
 					       in 5ms interval */
-- 
1.9.1



More information about the Skiboot mailing list