From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Yanok Date: Mon, 30 Jun 2008 18:10:52 +0400 Subject: [U-Boot-Users] [PATCH] mtd: CONFIG_NAND_LAZY_SCAN support (2nd rev) In-Reply-To: <4863C94A.2010602@freescale.com> References: <4863664A.4020807@emcraft.com> <4863C94A.2010602@freescale.com> Message-ID: <4868E96C.6000809@emcraft.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Scott Wood wrote: >> diff --git a/common/cmd_nand.c b/common/cmd_nand.c >> index 37eb41b..6f5d13d 100644 >> --- a/common/cmd_nand.c >> +++ b/common/cmd_nand.c >> @@ -236,6 +236,8 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, >> char *argv[]) >> } >> nand = &nand_info[nand_curr_device]; >> >> + nand_lazy_scan_finish(nand); >> + > > There are other entry points that need to be covered (e.g. > do_nandboot, do_onenand, env_nand, jffs2, etc). Probably better to > put the call in nand_block_isbad(). You're right. I've added scanning in nand_block_checkbad. > Is there any reason not to enable this unconditionally? Don't really know. I've used config option just to provide old behavior. -- Ilya