SAMA5 NAND: Fix some race conditions in checking status bits

This commit is contained in:
Gregory Nutt
2013-11-30 14:17:32 -06:00
parent 5978e04411
commit c50277149f
2 changed files with 158 additions and 142 deletions
File diff suppressed because it is too large Load Diff
+5 -3
View File
@@ -286,10 +286,12 @@ struct sam_nand_s
/* Dynamic state */
#ifdef CONFIG_SAMA5_NAND_HSMCINTERRUPTS
volatile bool cmddone; /* True: NFC command has completed */
volatile bool xfrdone; /* True: Transfer has completed */
volatile bool rbedge; /* True: Ready/busy edge detected */
volatile bool cmddone; /* True: NFC command has completed (latching) */
volatile bool xfrdone; /* True: Transfer has completed (latching) */
sem_t waitsem; /* Used to wait for one of the above states */
#else
bool cmddone; /* True: NFC command has completed (latching) */
bool xfrdone; /* True: Transfer has completed (latching) */
#endif
#ifdef CONFIG_SAMA5_HAVE_PMECC