mtd: nand: differentiate 1- vs. 2-byte writes when marking bad blocks
authorBrian Norris <computersforpeace@gmail.com>
Sat, 14 Jan 2012 02:11:49 +0000 (18:11 -0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:12:34 +0000 (00:12 +0100)
commit85443319989bb91814504608a6e11d880e156828
treed7609b50a19a05ed5f0566c03a2bf43eafe6db9b
parentcdbec0508699e3346052bf098c5c330a711a86a9
mtd: nand: differentiate 1- vs. 2-byte writes when marking bad blocks

It seems that we have developed a bad-block-marking "feature" out of
pure laziness:

  "We write two bytes per location, so we dont have to mess with 16 bit
  access."

It's relatively simple to write a 1 byte at a time on x8 devices and 2
bytes at a time on x16 devices, so let's do it.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c