diff options
| author | Graf Yang <[email protected]> | 2009-04-04 07:45:57 -0400 |
|---|---|---|
| committer | Mike Frysinger <[email protected]> | 2009-04-06 17:37:37 -0400 |
| commit | a343ba87ea0320ca0a4ecfa2c42cd9d4f18883df (patch) | |
| tree | 64aa47973a8a435aff3b826a75ba521c299fc39c /drivers | |
| parent | d04371a116d102e587ba7aa4c329b441cdbea3f4 (diff) | |
Blackfin: nand: flush peripheral before polling it
We need to make sure the data written to the nand flash controller makes
it there before we start polling its status register. Otherwise, we may
get stale data and return before the controller is actually ready.
Signed-off-by: Graf Yang <[email protected]>
Signed-off-by: Mike Frysinger <[email protected]>
Acked-by: Scott Wood <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/mtd/nand/bfin_nand.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/bfin_nand.c b/drivers/mtd/nand/bfin_nand.c index f6a0835b4b7..f134ef100fe 100644 --- a/drivers/mtd/nand/bfin_nand.c +++ b/drivers/mtd/nand/bfin_nand.c @@ -98,6 +98,7 @@ static void bfin_nfc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) /* Contents do not matter */ bfin_write_NFC_DATA_RD(0x0000); + SSYNC(); while (!(bfin_read_NFC_IRQSTAT() & RD_RDY)) if (ctrlc()) |
