From: Brian Norris Date: Sat, 14 Jan 2012 02:11:47 +0000 (-0800) Subject: mtd: nand: erase block before marking bad X-Git-Tag: v3.4-rc1~16^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=009184296d957d864d6fa9ac2dd192d29e069878;p=pandora-kernel.git mtd: nand: erase block before marking bad Many NAND flash systems (especially those with MLC NAND) cannot be reliably written twice in a row. For instance, when marking a bad block, the block may already have data written to it, and so we should attempt to erase the block before writing a bad block marker to its OOB region. We can ignore erase failures, since the block may be bad such that it cannot be erased properly; we still attempt to write zeros to its spare area. Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed