From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Fri, 07 May 2010 13:54:37 -0500 Subject: [U-Boot] [PATCH] Blackfin: nand: drain the write buffer before returning In-Reply-To: <201005071448.19238.vapier@gentoo.org> References: <1273209948-27610-1-git-send-email-vapier@gentoo.org> <20100507175151.GA26420@schlenkerla.am.freescale.net> <201005071448.19238.vapier@gentoo.org> Message-ID: <4BE461ED.6030006@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/07/2010 01:48 PM, Mike Frysinger wrote: > 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 >>> >>> 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 >>> Signed-off-by: Mike Frysinger >>> --- >>> >>> 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. OK, done. -Scott