From b9c9437c05204bf7cbe91d686b2284146582b76e Mon Sep 17 00:00:00 2001 From: Kan Yan Date: Thu, 30 Jun 2016 14:20:25 -0700 Subject: [PATCH] Gale driver: Reduce the delay in I2C. BUG=b:28942403 TEST=Boot up and TPM functions normally. BRANCH=None 3ms delay is sufficient for qup_i2c_write_fifo_flush(). Change-Id: Ib9ad9b4eb3cf10027526419cb282f4530bc3599e Signed-off-by: Kan Yan Reviewed-on: https://chromium-review.googlesource.com/357962 Reviewed-by: Suresh Rajashekara --- src/drivers/bus/i2c/ipq40xx_qup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/bus/i2c/ipq40xx_qup.c b/src/drivers/bus/i2c/ipq40xx_qup.c index 81433ae9..07af8d0e 100644 --- a/src/drivers/bus/i2c/ipq40xx_qup.c +++ b/src/drivers/bus/i2c/ipq40xx_qup.c @@ -176,7 +176,7 @@ static inline qup_return_t qup_i2c_write_fifo_flush(blsp_qup_id_t id) qup_write32(QUP_ADDR(id, QUP_OPERATIONAL), OUTPUT_SERVICE_FLAG); - mdelay(10); /* TPM seems to need this */ + mdelay(3); /* TPM seems to need this */ ret = qup_fifo_wait_while(id, OUTPUT_FIFO_NOT_EMPTY); if (ret) -- 2.11.0