Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vbu5a-0002j7-TD for linux-mtd@lists.infradead.org; Thu, 31 Oct 2013 15:23:15 +0000 Received: by mail-ob0-f174.google.com with SMTP id vb8so3148363obc.5 for ; Thu, 31 Oct 2013 08:22:53 -0700 (PDT) Date: Thu, 31 Oct 2013 11:22:45 -0400 From: Brian Norris To: Ezequiel Garcia Subject: Re: [PATCH] mtd: nand_bbt: kill NAND_BBT_SCANALLPAGES Message-ID: <20131031152245.GB4700@norris.computersforpeace.net> References: <1383186575-31328-1-git-send-email-computersforpeace@gmail.com> <20131031102038.GA2391@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131031102038.GA2391@localhost> Cc: linux-mtd@lists.infradead.org, Pekon Gupta List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Oct 31, 2013 at 07:20:39AM -0300, Ezequiel Garcia wrote: > On Wed, Oct 30, 2013 at 10:29:35PM -0400, Brian Norris wrote: > > Now that the last user of NAND_BBT_SCANALLPAGES has been removed, let's > > kill this peculiar BBT feature flag. > > > > I must admit I also find this option a bit puzzling. > > However, I'm wondering what happens if a manufacturer specifies > the bad block mark is in some page at the middle of a block. > > AFAIK, some of them do exactly that, and I've always thought > this option was the solution for such cases. Well, it's not really a *good* solution for a marker in the middle of the page, as it's both inaccurate and heavily inefficient. But honestly, I've never heard of such a device. (There is a rare one or two that uses the 2nd-to-last or 3rd-to-last page.) Do you have any examples? > So, is this really no longer needed? I think it just adds unnecessary complexity to nand_bbt.c. Generally, the fewer (unused) options the better. Also, this helps clear the way for some nand_base/nand_bbt simplification that I have planned. Additionally, I think its only users were either accidental (in the case of omap2.c) or lazy (which didn't want to figure out the correct pages to scan for bad block markers). And now there are no users. Brian