changeset 657:b36733f14177

aci3 for MMI != 0: same R2D check as in aci2
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 08 May 2020 00:58:42 +0000
parents 9c42614e0a5e
children e0d243b18f3b
files src/g23m-aci/aci/aci_pei.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/g23m-aci/aci/aci_pei.c	Thu May 07 23:19:27 2020 +0000
+++ b/src/g23m-aci/aci/aci_pei.c	Fri May 08 00:58:42 2020 +0000
@@ -154,6 +154,10 @@
 
 extern const char firmware_version_str[];
 
+#if (MMI != 0)
+extern int r2d_is_running;
+#endif
+
 
 /*==== DEFINE =====================================================*/
 
@@ -1384,6 +1388,12 @@
 
 #endif /* TI_PS_HCOMM_CHANGE */
 
+/* FreeCalypso addition to fix R2D start race condition */
+#if (MMI != 0)
+  if (!r2d_is_running)
+    return PEI_ERROR;
+#endif
+
 #ifdef DTI
 #ifdef _SIMULATION_
   /*