[PATCH 0/2] mtd: nand: support OOB without ECC

Brian Norris computersforpeace at gmail.com
Wed Aug 24 17:12:22 EDT 2011


Hi,

This is an update to the first two patches from my RFC I sent earlier:

  http://lists.infradead.org/pipermail/linux-mtd/2011-August/037522.html

I have determined that the problems I am facing regarding `nandwrite -n'
and `nanddump -n -o' are unique to hardware that performs error
correction when doing OOB-only operations. AFAICT, this is not
widespread in MTD.

These patches supply a new replaceable interface, where systems that
need to do so can supply their own {read,write}_oob_raw functions.
Otherwise, the NAND system will simply use the same OOB functions for
both raw and normal read/write, making little to no change in the
overall operation of most systems.

I've tested to make sure this doesn't break anything with nandsim, but
any further testing on other hardware would be great. Also, if anyone
else can confirm that their system does not perform 'noecc' operations
correctly, then let me know.

Brian

Brian Norris (2):
  mtd: support writing OOB without ECC
  mtd: support reading OOB without ECC

 drivers/mtd/mtdchar.c        |   17 ++++++++++-------
 drivers/mtd/nand/nand_base.c |   18 ++++++++++++++++--
 include/linux/mtd/nand.h     |    6 ++++++
 3 files changed, 32 insertions(+), 9 deletions(-)

-- 
1.7.5.4




More information about the linux-mtd mailing list