[U-Boot] [PATCH v2] Blackfin: nand: drain the write buffer before returning

Scott Wood scottwood at freescale.com
Thu May 20 23:31:29 CEST 2010


On Fri, May 07, 2010 at 03:10:07PM -0400, Mike Frysinger wrote:
> From: Andrew Caldwell <Andrew.Caldwell at analog.com>
> 
> 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 at analog.com>
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
> v2
> 	- fix inverted logic reminded by Andrew

Applied to u-boot-nand-flash.

-Scott


More information about the U-Boot mailing list