From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-iy0-f177.google.com ([209.85.210.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RkLlP-0004CR-DO for linux-mtd@lists.infradead.org; Mon, 09 Jan 2012 20:24:16 +0000 Received: by iadk27 with SMTP id k27so8399335iad.36 for ; Mon, 09 Jan 2012 12:24:13 -0800 (PST) From: Brian Norris To: Subject: [PATCH v3 0/6] NAND BBM + BBT updates Date: Mon, 9 Jan 2012 12:23:26 -0800 Message-Id: <1326140612-26323-1-git-send-email-computersforpeace@gmail.com> Cc: Dan Carpenter , Kulikov Vasiliy , Sebastian Andrzej Siewior , Nicolas Ferre , Dominik Brodowski , Peter Wippich , Gabor Juhos , Guillaume LECERF , Jonas Gorski , Jamie Iles , Ivan Djelic , Robert Jarzmik , David Woodhouse , Maxim Levitsky , Dmitry Eremin-Solenikov , Kevin Cernekee , Barry Song <21cnbao@gmail.com>, Jim Quinlan , Andres Salomon , Axel Lin , Anatolij Gustschin , Mike Frysinger , Arnd Bergmann , Lei Wen , Sascha Hauer , Artem Bityutskiy , Florian Fainelli , Artem Bityutskiy , Adrian Hunter , Matthieu CASTET , Kyungmin Park , Shmulik Ladkani , Wolfram Sang , Chuanxiao Dong , Joe Perches , Brian Norris , Roman Tereshonkov List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This patch series is an update to a previous patch (that has split into a few patches) with a few additional patches at the end. The important segments of this series involve the default steps for marking new bad blocks when using a flash-based BBT. The new default behavior will write to the BBT as well as attempting to write a BBM to the OOB area of the bad block. See the patch descriptions for details. The first patch, regarding NAND_NO_WRITE_OOB, is a first attempt at satisfying Sebastian's concerns that some systems utilize the entire OOB area for ECC, and so we need an option to prevent writing markers to OOB. My attempt to prevent other OOB writes may be misguided, incomplete, flawed in some other way, or some combination of the three. Please provide constructive criticism. v3: writing to flash-based BBT and to BBM is still default, but there is a new option NAND_NO_WRITE_OOB that can prevent writing the BBM as well as prevent all other OOB writes. Brian Norris (6): mtd: nand: add NAND_NO_WRITE_OOB option mtd: nand: write bad block marker by default even with BBT mtd: nand: erase block before marking bad mtd: nand: fix SCAN2NDPAGE check for BBM mtd: nand: differentiate 1- vs. 2-byte writes when marking bad blocks mtd: nand: correct comment on nand_chip badblockbits drivers/mtd/nand/nand_base.c | 79 ++++++++++++++++++++++++++++------------- include/linux/mtd/nand.h | 11 +++++- 2 files changed, 63 insertions(+), 27 deletions(-) -- 1.7.5.4