From patchwork Tue Mar 8 00:08:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Murali Nalajala X-Patchwork-Id: 85874 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 87CDEB711C for ; Tue, 8 Mar 2011 11:10:58 +1100 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PwkUg-0007de-3V; Tue, 08 Mar 2011 00:09:42 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PwkUc-000694-CH; Tue, 08 Mar 2011 00:09:38 +0000 Received: from wolverine02.qualcomm.com ([199.106.114.251]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PwkUO-00068R-As; Tue, 08 Mar 2011 00:09:25 +0000 X-IronPort-AV: E=McAfee;i="5400,1158,6278"; a="78368664" Received: from pdmz-css-vrrp.qualcomm.com (HELO mostmsg01.qualcomm.com) ([199.106.114.130]) by wolverine02.qualcomm.com with ESMTP/TLS/ADH-AES256-SHA; 07 Mar 2011 16:09:22 -0800 Received: from codeaurora.org (pdmz-snip-v218.qualcomm.com [192.168.218.1]) by mostmsg01.qualcomm.com (Postfix) with ESMTPA id 0835810004B1; Mon, 7 Mar 2011 16:09:05 -0800 (PST) From: Murali Nalajala To: dwmw2@infradead.org Subject: [PATCH V2 1/2] mtd: nand: Allow NAND chip ids to be included standalone. Date: Tue, 8 Mar 2011 05:38:55 +0530 Message-Id: <1299542935-20291-1-git-send-email-mnalajal@codeaurora.org> X-Mailer: git-send-email 1.7.1.1 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110307_190924_590138_F5232D80 X-CRM114-Status: GOOD ( 17.21 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [199.106.114.251 listed in list.dnswl.org] Cc: Murali Nalajala , linux-arm-msm@vger.kernel.org, linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Dima Zavin 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 Lets non-standard NAND drivers take advantage of known NAND chip information. The initial development of msm nand driver, driver uses the supported NAND devices information as a hardcoded table. Remove the existing hardcoded supported flash device table and read the flash device information from the flash id table which are part of the mtd subsystem. Signed-off-by: Dima Zavin Signed-off-by: Murali Nalajala Acked-by: Dima Zavin Acked-by: David Brown --- Changes in V2 * Add more description to the commit text. drivers/mtd/nand/Kconfig | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index c895922..782275e 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -1,3 +1,10 @@ +config MTD_NAND_IDS + tristate "Include chip ids for known NAND devices." + depends on MTD + help + Useful for NAND drivers that do not use the NAND subsystem but + still like to take advantage of the known chip information. + config MTD_NAND_ECC tristate @@ -123,9 +130,6 @@ config MTD_NAND_OMAP_PREFETCH_DMA or in DMA interrupt mode. Say y for DMA mode or MPU mode will be used -config MTD_NAND_IDS - tristate - config MTD_NAND_RICOH tristate "Ricoh xD card reader" default n