changeset 194:a18bf8df5fab

aci_pei.c: sync with Magnetite for (MMI != 0) There was a change in Magnetite aci3 for (MMI != 0) configuration; this config does not exist in Selenite, but this change is being pulled in as a sync in order to keep the diff between Magnetite and Selenite to a minimum.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 23 May 2020 07:21:43 +0000
parents 6a53de2c4fc2
children 2863e5e4af4f
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	Sat May 23 07:13:36 2020 +0000
+++ b/src/g23m-aci/aci/aci_pei.c	Sat May 23 07:21:43 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_
   /*