From patchwork Wed Oct 21 08:34:03 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 36498 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 50E1DB7BA3 for ; Wed, 21 Oct 2009 19:36:38 +1100 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1N0WeD-0005Sm-8R; Wed, 21 Oct 2009 08:34:21 +0000 Received: from mail-yw0-f204.google.com ([209.85.211.204]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1N0We6-0005RY-Ml for linux-mtd@lists.infradead.org; Wed, 21 Oct 2009 08:34:19 +0000 Received: by ywh42 with SMTP id 42so6054303ywh.28 for ; Wed, 21 Oct 2009 01:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=/HGjmXJOW6v0W/+vSYkoX6plKf6wG3NJyZhzk9lBX6g=; b=EOSkCbguhb60d4LE9JcLDN6A3IN1v+TL10gKuaNCw5XQZbHldopaTsCvHqMHJ6geBJ e2jwMYF9+eMdQctnuIAlO80NFns/zm/f1KMefig6KgXzuLBZ7CWBREQiHSX87Pyy/GH1 NBKHkw4LB0DQhKohQNNYx6uTrUO10KKJj9yxQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=f+u/Gg3SvAA0+DmO2DpZ6Ly/deNChY59/7DYrGanAGZrlVMXaVM3j5jaijwkcuTdc1 U08Ij0qHXzqCRn6swD6qnfs2484C3FmR0WtpmoC8Wzv+dgTPtRKrmQT8oogwOoAUlfAa YGWUGE5VWcmhQMB0xkdb1pI74gMgBpEG4d2wI= Received: by 10.150.8.3 with SMTP id 3mr12570163ybh.62.1256114054413; Wed, 21 Oct 2009 01:34:14 -0700 (PDT) Received: from localhost ([220.110.185.192]) by mx.google.com with ESMTPS id 16sm562030gxk.15.2009.10.21.01.34.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 21 Oct 2009 01:34:12 -0700 (PDT) From: Akinobu Mita To: linux-mtd@lists.infradead.org Subject: [PATCH 2/3 -v3] MTD: Add MTD NAND tests support Date: Wed, 21 Oct 2009 17:34:03 +0900 Message-Id: <1256114044-12163-2-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 1.5.4.3 In-Reply-To: <> References: <> X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20091021_043414_893508_620B5543 X-CRM114-Status: GOOD ( 10.23 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.2.5 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- _SUMMARY_ Cc: Artem Bityutskiy , David Woodhouse , Akinobu Mita , vimal singh X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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