From patchwork Thu May 10 06:55:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Ungerer X-Patchwork-Id: 158326 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5646BB6FA0 for ; Fri, 11 May 2012 00:08:31 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SSU0g-0000Sy-3C; Thu, 10 May 2012 14:06:28 +0000 Received: from casper.infradead.org ([85.118.1.10]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SSOo7-0008Nh-Bw for linux-mtd@merlin.infradead.org; Thu, 10 May 2012 08:33:08 +0000 Received: from sncsmrelay2.nai.com ([67.97.80.206]) by casper.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SSNMy-0007Ye-Fz for linux-mtd@lists.infradead.org; Thu, 10 May 2012 07:01:03 +0000 Received: from SNCEXHT1.corp.nai.org (unknown [10.68.5.51]) by sncsmrelay2.nai.com with smtp id 3e3b_180a_dae2c1c0_c1d1_47ba_b8bb_12bf5d3eb968; Thu, 10 May 2012 01:59:54 -0500 Received: from SNCEXAMMB3.corp.nai.org (10.68.48.8) by SNCEXHT1.corp.nai.org (10.68.5.51) with Microsoft SMTP Server (TLS) id 8.3.245.1; Wed, 9 May 2012 23:57:10 -0700 Received: from localhost.localdomain (172.22.196.22) by mail.na.nai.com (10.68.48.8) with Microsoft SMTP Server id 8.3.245.1; Wed, 9 May 2012 23:57:10 -0700 From: To: , Subject: [PATCH 2/2] mtd: allow uclinux map driver to be used on any ColdFire CPU platform Date: Thu, 10 May 2012 16:55:29 +1000 Message-ID: <1336632929-26100-2-git-send-email-gerg@snapgear.com> X-Mailer: git-send-email 1.5.5.1 In-Reply-To: <1336632929-26100-1-git-send-email-gerg@snapgear.com> References: <1336632929-26100-1-git-send-email-gerg@snapgear.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20120510_080100_968690_1FB04F0F X-CRM114-Status: GOOD ( 12.01 ) X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on casper.infradead.org summary: Content analysis details: (-4.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [67.97.80.206 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Greg Ungerer X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Greg Ungerer The uclinux.c map driver has traditionally been used only on non-MMU based systems. But there is no fundamental reason it can't be used on systems running with virtual memory. Some ColdFire CPU based systems now have full paged MMU hardware and can use the uclinux.c mapping driver, so making the uclinux.c driver configuration depend on !CONFIG_MMU doesn't make sense now. Allow the CONFIG_MTD_UCLINUX option to be enabled if CONFIG_COLDFIRE is enabled. (I have chosen not to just more generally allow uclinux.c for any MMU type to keep this option hidden for most systems that are not interested in setting it). Signed-off-by: Greg Ungerer --- drivers/mtd/maps/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig index 8af67cf..a5ac6b9 100644 --- a/drivers/mtd/maps/Kconfig +++ b/drivers/mtd/maps/Kconfig @@ -443,7 +443,7 @@ config MTD_GPIO_ADDR config MTD_UCLINUX bool "Generic uClinux RAM/ROM filesystem support" - depends on MTD_RAM=y && !MMU + depends on MTD_RAM=y && (!MMU || COLDFIRE) help Map driver to support image based filesystems for uClinux.