From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TMZrq-00042M-RF for linux-mtd@lists.infradead.org; Fri, 12 Oct 2012 07:41:11 +0000 Date: Fri, 12 Oct 2012 09:41:00 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Mike Frysinger Subject: Re: [PATCH] [RFC] mtd/uclinux: support ROM and allow passing the base address Message-ID: <20121012074100.GC639@pengutronix.de> References: <1349709952-4332-1-git-send-email-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Cc: Artem Bityutskiy , linux-mtd@lists.infradead.org, kernel@pengutronix.de, Greg Ungerer List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Oct 11, 2012 at 12:21:59AM -0400, Mike Frysinger wrote: > On Mon, Oct 8, 2012 at 11:25 AM, Uwe Kleine-König wrote: > > --- a/drivers/mtd/maps/uclinux.c > > +++ b/drivers/mtd/maps/uclinux.c > > @@ -23,12 +23,13 @@ > > > > /****************************************************************************/ > > > > -struct map_info uclinux_ram_map = { > > - .name = "RAM", > > - .phys = (unsigned long)__bss_stop, > > +static struct map_info uclinux_ram_map = { > > .size = 0, > > }; > > this change will break Blackfin systems. i mentioned last time > someone tried to make this and we talked about adding a comment to > prevent future breakage, but that seems to not have happened. Will send a patch in a moment. > i don't think's necessary either for the larger change here. use the logic: > if (physaddr != -1) > mapp->phys = physaddr; > and keep the default initialization. I keep my way as it seems to be more robust for possible future changes. (I don't know if that will ever happen, but consider platform device support or just a retry of instatiation after physaddr changed from something back to -1.) Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ |