From 49f15c63f77f3b20178e0fcc0a3367cb51227b35 Mon Sep 17 00:00:00 2001 From: Andy Sun Date: Thu, 25 May 2017 14:43:49 +0800 Subject: [PATCH] ais: increase CCI timeout value to 600 msec On some ADP board, after writing CCI command to sensor, msm_cci_wait timeout issue happens sometimes during b2b stress testing. All the error cases indicate needing 510 msec to get completion from irq, so change the timeout value from 500 msec to 600 msec. CRs-fixed: 2052210 Change-Id: Ie70a86de6b2d7eab823ad700be5ee748a3f5e800 Signed-off-by: Andy Sun --- drivers/media/platform/msm/ais/sensor/cci/msm_cci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/msm/ais/sensor/cci/msm_cci.c b/drivers/media/platform/msm/ais/sensor/cci/msm_cci.c index 858e68154f7f..42f8c4dcfaa0 100644 --- a/drivers/media/platform/msm/ais/sensor/cci/msm_cci.c +++ b/drivers/media/platform/msm/ais/sensor/cci/msm_cci.c @@ -32,7 +32,7 @@ #define CYCLES_PER_MICRO_SEC_DEFAULT 4915 #define CCI_MAX_DELAY 1000000 -#define CCI_TIMEOUT msecs_to_jiffies(500) +#define CCI_TIMEOUT msecs_to_jiffies(600) /* TODO move this somewhere else */ #define MSM_CCI_DRV_NAME "msm_cci"