aboutsummaryrefslogtreecommitdiff
path: root/libstb
diff options
context:
space:
mode:
authorClaudio Carvalho <cclaudio@linux.vnet.ibm.com>2016-11-11 02:35:35 -0200
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-11-11 15:39:18 +1100
commitf6c08376cf4bdf57bdec6c3a6f8399bcbceffe56 (patch)
tree0d6a5e05b9b0a9772435642b1cad41ed546a24ea /libstb
parent02a628a37982ebcc00f050d2a6a73aa6247718f2 (diff)
downloadskiboot-f6c08376cf4bdf57bdec6c3a6f8399bcbceffe56.zip
skiboot-f6c08376cf4bdf57bdec6c3a6f8399bcbceffe56.tar.gz
skiboot-f6c08376cf4bdf57bdec6c3a6f8399bcbceffe56.tar.bz2
libstb: bump up the byte timeout for tpm i2c requests
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@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libstb')
-rw-r--r--libstb/drivers/tpm_i2c_interface.c2
1 files changed, 1 insertions, 1 deletions
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 */