hsi_ffl_tty: increase modem boot timeout to 60 seconds as per IMC request
authorOlivier Stoltz Douchet <olivierx.stoltz-douchet@intel.com>
Mon, 16 Apr 2012 08:12:46 +0000 (10:12 +0200)
committerbuildbot <buildbot@intel.com>
Tue, 17 Apr 2012 10:17:51 +0000 (03:17 -0700)
BZ: 28292

The modem post boot handshake timeout is currently set to 10 seconds, which
seems to be sufficient a time for the modem to setup its HSI IPC. But, this
assertion is not true and the modem can take up to one minute to boot up.

This patch is simply increasing the modem boot timeout to 60 seconds instead
of 10 seconds to allow correct modem reboot handshake in all contexts.

Still, this timeout value shall be fine tuned when the modem firmware will be
allowing shorter boot sequences - one minute seems huge for setting up the IPC.

Change-Id: Ie3dd6f58458fc5c6b628744588014a63698b774e
Signed-off-by: Olivier Stoltz Douchet <olivierx.stoltz-douchet@intel.com>
Reviewed-on: http://android.intel.com:8080/43536
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: Lucas, Guillaume <guillaume.lucas@intel.com>
Reviewed-by: Lebsir, SamiX <samix.lebsir@intel.com>
Tested-by: Lebsir, SamiX <samix.lebsir@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/hsi/clients/hsi_ffl_tty.c

index e7db3ce..454a8b9 100644 (file)
@@ -77,7 +77,7 @@
 #define FFL_MIN_RX_BUFFERING   65536
 
 /* Modem post book wake handshake timeout value (10 seconds) */
-#define POST_BOOT_HANDSHAKE_TIMEOUT_JIFFIES    (msecs_to_jiffies(10000))
+#define POST_BOOT_HANDSHAKE_TIMEOUT_JIFFIES    (msecs_to_jiffies(60000))
 
 /* Error recovery related timings */
 #define RECOVERY_TO_NORMAL_DELAY_JIFFIES       (usecs_to_jiffies(100000))