]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: mtd_nandecctest: add double bit error detection tests
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 7 Sep 2012 16:48:10 +0000 (01:48 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 29 Sep 2012 14:48:02 +0000 (15:48 +0100)
commit6ed089c0a1bc6f371dbcf97fb4e8218deaa0ae17
tree25254895560a1c0a8997928b2dbd0f12bc6eb9ae
parent200ab8454c42c607efd281b2c2398624eccdd2cc
mtd: mtd_nandecctest: add double bit error detection tests

This adds the double bit error detection test cases listed below:

* Prepare data block with double bit error and ECC data without
corruption, and verify that the uncorrectable error is detected by
__nand_correct_data().

* Prepare data block with single bit error and ECC data with single bit
error, and verify that the uncorrectable error is detected.

* Prepare data block without corruption and ECC data with double bit
error, and verify that the uncorrectable error is detected.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/tests/mtd_nandecctest.c