[U-Boot] [PATCH] Blackfin: nand: drain the write buffer before returning
Mike Frysinger
vapier at gentoo.org
Fri May 7 20:48:17 CEST 2010
On Friday 07 May 2010 13:51:51 Scott Wood wrote:
> On Fri, May 07, 2010 at 01:25:48AM -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 doing writing to it.
> >
> > Signed-off-by: Andrew Caldwell <Andrew.Caldwell at analog.com>
> > Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> > ---
> >
> > drivers/mtd/nand/bfin_nand.c | 7 ++++++-
> > 1 files changed, 6 insertions(+), 1 deletions(-)
>
> Applied to u-boot-nand-flash.
sorry, please drop this. Andrew pointed out that i committed/posted the wrong
version. i'll send an update shortly.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100507/c651a82d/attachment.pgp
More information about the U-Boot
mailing list