From: Scott Wood Date: Thu, 20 May 2010 16:31:29 -0500 Subject: [U-Boot] [PATCH v2] Blackfin: nand: drain the write buffer before returning In-Reply-To: <1273259407-31708-1-git-send-email-vapier@gentoo.org> References: <1273209948-27610-1-git-send-email-vapier@gentoo.org> <1273259407-31708-1-git-send-email-vapier@gentoo.org> Message-ID: <20100520213129.GA14741@schlenkerla.am.freescale.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, May 07, 2010 at 03:10:07PM -0400, Mike Frysinger wrote: > From: Andrew Caldwell > > 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 > Signed-off-by: Mike Frysinger > --- > v2 > - fix inverted logic reminded by Andrew Applied to u-boot-nand-flash. -Scott