]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: add nand_ecc test module
authorAkinobu Mita <akinobu.mita@gmail.com>
Thu, 22 Oct 2009 07:53:33 +0000 (16:53 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 30 Nov 2009 09:41:49 +0000 (09:41 +0000)
commit21c131346ffda7d9655cc3eec9495fa4661426d8
tree0c453ef8f478f10d70aa5a913a36795244711bfc
parentafd8930c144b17fd48353e2f6b7fbd2e98ffcd7c
mtd: add nand_ecc test module

This module tests NAND ECC functions.

The test is simple.

1. Create a 256 or 512 bytes block of data filled with random bytes (data)
2. Duplicate the data block and inject single bit error (error_data)
3. Try to correct error_data
4. Compare data and error_data

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Vimal Singh <vimalsingh@ti.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/tests/Makefile
drivers/mtd/tests/mtd_nandecctest.c [new file with mode: 0644]