]> git.ipfire.org Git - people/ms/u-boot.git/commit
Blackfin: nand: drain the write buffer before returning
authorAndrew Caldwell <Andrew.Caldwell@analog.com>
Fri, 7 May 2010 19:10:07 +0000 (15:10 -0400)
committerScott Wood <scottwood@freescale.com>
Wed, 26 May 2010 22:59:13 +0000 (17:59 -0500)
commitc941b77adc40f344215e367b3d1fc638addff870
tree915f8d635c114f064a0fe24cd554506f875fe99f
parent01f03bda5b22e5aeae5f02fd537da97a41485c73
Blackfin: nand: drain the write buffer before returning

The current Blackfin nand write function fills up the write buffer but
returns before it has had a chance to drain.  On faster systems, this
isn't a problem as the operation finishes before the ECC registers are
read, but on slower systems the ECC may be incomplete when the core tries
to read it.

So wait for the buffer to drain once we're done writing to it.

Signed-off-by: Andrew Caldwell <Andrew.Caldwell@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/mtd/nand/bfin_nand.c