From patchwork Tue Apr 20 09:04:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 50520 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 4C7F2B7D0C for ; Tue, 20 Apr 2010 19:06:15 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1O49NO-0003a4-Cr; Tue, 20 Apr 2010 09:04:14 +0000 Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1O49NK-0003Z4-Ts for linux-mtd@lists.infradead.org; Tue, 20 Apr 2010 09:04:12 +0000 Received: from octopus.hi.pengutronix.de ([2001:6f8:1178:2:215:17ff:fe12:23b0]) by metis.ext.pengutronix.de with esmtp (Exim 4.71) (envelope-from ) id 1O49NI-0002jn-6g; Tue, 20 Apr 2010 11:04:08 +0200 Received: from wsa by octopus.hi.pengutronix.de with local (Exim 4.69) (envelope-from ) id 1O49NI-0000JU-1B; Tue, 20 Apr 2010 11:04:08 +0200 Date: Tue, 20 Apr 2010 11:04:08 +0200 From: Wolfram Sang To: David Woodhouse Subject: Re: Can PYSMAP_COMPAT go? Message-ID: <20100420090408.GM19957@pengutronix.de> References: <20100420063547.GH19957@pengutronix.de> <20100420073503.GL4586@mail.wantstofly.org> <1271750733.14748.1580.camel@macbook.infradead.org> MIME-Version: 1.0 In-Reply-To: <1271750733.14748.1580.camel@macbook.infradead.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: 2001:6f8:1178:2:215:17ff:fe12:23b0 X-SA-Exim-Mail-From: wsa@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-mtd@lists.infradead.org X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100420_050411_208083_B011FB6F X-CRM114-Status: GOOD ( 23.58 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.3.1 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain Cc: linux-mtd@lists.infradead.org, Lennert Buytenhek 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: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org > And this was i386, which unfortunately doesn't use the device-tree yet, > although on these embedded SoC devices it really _should_ be doing so. > And it doesn't have 'platform code' either. Okay, so unless i386 gets device-tree support ;), how about at least this? From: Wolfram Sang Subject: [PATCH] mtd/physmap: Use sensible default value for MTD_PHYSMAP_LEN Commit 73566edf9b91dd085ddb12033d0ea7288979dd10 made it necessary to be 0, but commit dcb3e137ce9be1dfc86e306182b23e3ae5e239c4 obsoleted that requirement. Restore the old value to get a meaningful default. Signed-off-by: Wolfram Sang --- 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 aa2807d..213c615 100644 --- a/drivers/mtd/maps/Kconfig +++ b/drivers/mtd/maps/Kconfig @@ -47,7 +47,7 @@ config MTD_PHYSMAP_START config MTD_PHYSMAP_LEN hex "Physical length of flash mapping" depends on MTD_PHYSMAP_COMPAT - default "0" + default "0x4000000" help This is the total length of the mapping of the flash chips on your particular board. If there is space, or aliases, in the