]> git.sur5r.net Git - u-boot/commit
Blackfin: nand: flush peripheral before polling it
authorGraf Yang <graf.yang@analog.com>
Sat, 4 Apr 2009 11:45:57 +0000 (07:45 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Apr 2009 21:37:37 +0000 (17:37 -0400)
commita343ba87ea0320ca0a4ecfa2c42cd9d4f18883df
tree64aa47973a8a435aff3b826a75ba521c299fc39c
parentd04371a116d102e587ba7aa4c329b441cdbea3f4
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 <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/bfin_nand.c