OSDN Git Service

mtd: mtd_nandecctest: add single bit error correction test
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 7 Sep 2012 16:48:09 +0000 (01:48 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 29 Sep 2012 14:47:55 +0000 (15:47 +0100)
commit200ab8454c42c607efd281b2c2398624eccdd2cc
treef01ad7d909efe308340e2d2074dc07e1edd768a7
parentccaa67956cfef80776d72d134467235f0055c863
mtd: mtd_nandecctest: add single bit error correction test

This adds the single bit error correction test case listed below:

Prepare data block without corruption and ECC data with single bit error,
and verify that the data block is preserved by __nand_correct_data().

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