[PATCH v2 00/16] DocG3 fixes and write support

Robert Jarzmik robert.jarzmik at free.fr
Thu Nov 10 03:05:26 EST 2011

This patchset is aimed at :
 - fixing 5 glitches in the driver
 - add several new functions

The added functions are :
 - add block erase capability
 - add write page capability
 - add powerdown and powerup
 - add multiple floor support
 - add ECC support
 - add docg3 modes support
 - add protection support (DPS areas)

The ECC part should especially be reviewed by Ivan and Mike,
as this is their work (patch "add ECC correction code").

Since V1, Ivan's and Mike's comments have been taken into
account, and nandtest/nanddump/nandwrite testing has been
done, with and without bitflipped data.

Moreover, 3 new patches have been added:
 - fix reading oob+data without correction
   This was triggered by the bitflipped pages tests, and
   fixes cases where we want to read corrupted data.
 - add docg3 modes support
   This actually fixes the read part, as we now read in
   "normal" mode by default rather than in "reliable"
   mode. This is mandatory for nandtest to work, because of
   the "even/odd pages logical AND".
 - add protection support
   This is an evolution to be able to access the whole chip
   in protected chips, as they are in smartphones.

Happy review.


Robert Jarzmik (16):
  mtd/docg3: fix debug log verbosity
  mtd/docg3: fix tracing of IO in writeb
  mtd/docg3: fix protection areas reading
  mtd/docg3: fix BCH registers
  mtd/docg3: fix reading oob+data without correction
  mtd/docg3: add multiple floor support
  mtd/docg3: add OOB layout to mtdinfo
  mtd/docg3: add registers for erasing and writing
  mtd/docg3: add OOB buffer to device structure
  mtd/docg3: add write functions
  mtd/docg3: add erase functions
  mtd/docg3: map erase and write functions
  mtd/docg3: add ECC correction code
  mtd/docg3: add suspend and resume
  mtd/docg3: add fast mode
  mtd/docg3: add protection areas sysfs access

 drivers/mtd/devices/Kconfig |    9 +
 drivers/mtd/devices/docg3.c | 1451 ++++++++++++++++++++++++++++++++++++-------
 drivers/mtd/devices/docg3.h |   64 ++-
 3 files changed, 1299 insertions(+), 225 deletions(-)


More information about the linux-mtd mailing list