From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 12 Sep 2011 21:28:47 +0200 Subject: [U-Boot] [PATCH 5/5] NAND: Add scrub.quiet command option In-Reply-To: <4E6E5B2A.2070705@freescale.com> References: <1315800250-19761-1-git-send-email-marek.vasut@gmail.com> <201109122036.27758.marek.vasut@gmail.com> <4E6E5B2A.2070705@freescale.com> Message-ID: <201109122128.48064.marek.vasut@gmail.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 Monday, September 12, 2011 09:19:06 PM Scott Wood wrote: > On 09/12/2011 01:36 PM, Marek Vasut wrote: > > On Monday, September 12, 2011 08:31:12 PM Scott Wood wrote: > >> Would it make sense to have the driver code treat block 0 specially > >> (possibly conditioned on an hwconfig or compile-time config), rather > >> than have it be user-driven? > > > > No! What if (very possible situation actually) the user wants to use the > > whole NAND because the user is booting from SD/SPI/... ? > > Well, that's why I suggested it be configurable. > > >> I'm curious why anything is written on an erase, though, regardless of > >> data format. > > > > Badblock markers (some FSL invention) are written always. > > What's it doing with them? Migrating them is something that should only > happen on the first use, as there will later be data in the factory bad > block area, right? So it shouldn't be "always". Migration should be an > explicitly requested option. Like scrub. :-) > > Where is the code that does this? Which driver? The BCH accelerator does this. > > -Scott