From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ew0-f205.google.com ([209.85.219.205]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1N0oHt-0000KJ-EM for linux-mtd@lists.infradead.org; Thu, 22 Oct 2009 03:24:34 +0000 Received: by ewy1 with SMTP id 1so6234332ewy.27 for ; Wed, 21 Oct 2009 20:24:28 -0700 (PDT) Date: Thu, 22 Oct 2009 12:24:15 +0900 From: Akinobu Mita To: Artem Bityutskiy Subject: Re: [PATCH 3/3 -v3] MTD: Add nand_ecc test module Message-ID: <20091022032415.GA3637@localhost.localdomain> References: <1256114044-12163-3-git-send-email-akinobu.mita@gmail.com> <1256115095.29856.338.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1256115095.29856.338.camel@localhost> Cc: David Woodhouse , linux-mtd@lists.infradead.org, vimal singh List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Oct 21, 2009 at 11:51:35AM +0300, Artem Bityutskiy wrote: > On Wed, 2009-10-21 at 17:34 +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 > > > > Signed-off-by: Akinobu Mita > > Cc: David Woodhouse > > Cc: linux-mtd@lists.infradead.org > > Cc: Artem Bityutskiy > > Cc: vimal singh > > --- > > drivers/mtd/tests/Makefile | 1 + > > drivers/mtd/tests/nand_ecc-test.c | 87 +++++++++++++++++++++++++++++++++++++ > > 2 files changed, 88 insertions(+), 0 deletions(-) > > create mode 100644 drivers/mtd/tests/nand_ecc-test.c > > How about a consistent name for the test? All current tests have 'mtd_' > prefix. How about make the file to be 'mtd_ecctest.c' ? OK. I'll rename to mtd_nandecctest.c as vimal said. > Also, since you anyway need to use these "#defines", I think there is > not need to use this splitting. I apologize for leading you that way at > the beginning. Does it mean we don't need MTD_NAND_TESTS and the new mtd_nandecctest should exist in MTD_TESTS with that #ifdef checks as I originally did?