Re: [PATCH 2/2] MTD: Add nand_ecc test module

Akinobu Mita
2009-10-19T06:16:03Z

On Mon, Oct 19, 2009 at 03:11:46PM +0900, Akinobu Mita wrote:
> 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
>
> This test is added into new MTD test group called MTD NAND test
> which requires MTD NAND device support.
>

...

> +
> +#if defined(CONFIG_MTD_NAND) || defined(CONFIG_MTD_NAND_MODULE)
> +

Oops. I forgot to remove this ifdefs.