From patchwork Wed Oct 21 08:34:03 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/3,-v3] MTD: Add MTD NAND tests support X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 36498 Message-Id: <1256114044-12163-2-git-send-email-akinobu.mita@gmail.com> To: linux-mtd@lists.infradead.org Cc: Artem Bityutskiy , David Woodhouse , Akinobu Mita , vimal singh Date: Wed, 21 Oct 2009 17:34:03 +0900 From: Akinobu Mita List-Id: Linux MTD discussion mailing list This creates new MTD test group called MTD NAND tests which require MTD NAND device support and moves mtd_oobtest, mtd_pagetest, and mtd_subpagetest into this group. Signed-off-by: Akinobu Mita Cc: David Woodhouse Cc: linux-mtd@lists.infradead.org Cc: Artem Bityutskiy Cc: vimal singh --- drivers/mtd/Kconfig | 7 +++++++ drivers/mtd/tests/Makefile | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index ecf90f5..e2e22fa 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -33,6 +33,13 @@ config MTD_TESTS should normally be compiled as kernel modules. The modules perform various checks and verifications when loaded. +config MTD_NAND_TESTS + tristate "MTD NAND tests support" + depends on MTD_TESTS + depends on MTD_NAND || MTD_ONENAND + help + This option enables MTD tests which require NAND Device support. + config MTD_CONCAT tristate "MTD concatenating support" help diff --git a/drivers/mtd/tests/Makefile b/drivers/mtd/tests/Makefile index c1d5013..919d066 100644 --- a/drivers/mtd/tests/Makefile +++ b/drivers/mtd/tests/Makefile @@ -1,7 +1,7 @@ -obj-$(CONFIG_MTD_TESTS) += mtd_oobtest.o -obj-$(CONFIG_MTD_TESTS) += mtd_pagetest.o obj-$(CONFIG_MTD_TESTS) += mtd_readtest.o obj-$(CONFIG_MTD_TESTS) += mtd_speedtest.o obj-$(CONFIG_MTD_TESTS) += mtd_stresstest.o -obj-$(CONFIG_MTD_TESTS) += mtd_subpagetest.o obj-$(CONFIG_MTD_TESTS) += mtd_torturetest.o +obj-$(CONFIG_MTD_NAND_TESTS) += mtd_oobtest.o +obj-$(CONFIG_MTD_NAND_TESTS) += mtd_pagetest.o +obj-$(CONFIG_MTD_NAND_TESTS) += mtd_subpagetest.o