]> bbs.cooldavid.org Git - net-next-2.6.git/commit
mtd: nand: update nand_default_block_markbad()
authorBrian Norris <norris@broadcom.com>
Wed, 21 Jul 2010 23:53:47 +0000 (16:53 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 2 Aug 2010 08:09:50 +0000 (09:09 +0100)
commit02ed70bb7b2644936959aee617296022dedb109e
tree8ca2ac211e45a56dc682be08af7640a73d81cf9e
parent6ea9ad24186d1242320bf02082e02c8c5a8073be
mtd: nand: update nand_default_block_markbad()

This is an update that depends on the previous patches I sent.

We can now write to all the appropriate BB marker locations (i.e.
pages 1 AND 2, bytes 1 AND 6) with nand_default_block_markbad() if
necessary, according to the flags marked in chip->options.

Note that I removed the line:
ofs += mtd->oobsize;
Unless I am wrong, this line was completely unnecessary in the
first place.

Signed-off-by: Brian Norris <norris@broadcom.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c