From a90c874c80ca87d70d0d34ffd1d7d6c1cbc59fe2 Mon Sep 17 00:00:00 2001 From: Amir Samuelov Date: Thu, 30 Jun 2016 11:14:17 +0300 Subject: [PATCH] spcom: increase timeout for TX-Done notification Normally, it takes few msec for SPSS to responde with ACK for TX data. However, due to SPSS HW issue, the SPSS might disable interrupts for a very long time, and not ACK for the data. Change-Id: I88a0b7a0637fb62d62ac760e9a8a946a5888d406 Signed-off-by: Amir Samuelov --- drivers/soc/qcom/spcom.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/spcom.c b/drivers/soc/qcom/spcom.c index 0551011b537f..45af4b601634 100644 --- a/drivers/soc/qcom/spcom.c +++ b/drivers/soc/qcom/spcom.c @@ -136,8 +136,13 @@ /* The SPSS RAM size is 256 KB so SP App must fit into it */ #define SPCOM_MAX_APP_SIZE SZ_256K -/* ACK timeout from remote side for TX data */ -#define TX_DONE_TIMEOUT_MSEC 100 +/* + * ACK timeout from remote side for TX data. + * Normally, it takes few msec for SPSS to responde with ACK for TX data. + * However, due to SPSS HW issue, the SPSS might disable interrupts + * for a very long time. + */ +#define TX_DONE_TIMEOUT_MSEC 5000 /* * Initial transaction id, use non-zero nonce for debug. -- 2.11.0