[U-Boot] [PATCH] mtd: Update MTD infrastructure to support 64bit device size

Scott Wood scottwood at freescale.com
Mon May 11 22:06:12 CEST 2009


On Mon, May 11, 2009 at 12:57:52PM -0400, Mike Frysinger wrote:
> On Monday 11 May 2009 12:38:45 Stefan Roese wrote:
> > On Monday 11 May 2009 18:27:02 Mike Frysinger wrote:
> > > On Monday 11 May 2009 10:03:55 Stefan Roese wrote:
> > > > This patch brings the U-Boot MTD infrastructure in sync with the
> > > > current Linux MTD version (2.6.30-rc3). Biggest change is the 64bit
> > > > device size support and a resync of the mtdpart.c file which has seen
> > > > multiple fixes meanwhile.

ACK

> i'd see most of the changes be via a typedef and thus there are no ifdefs 
> cluttering up the code

If you make the size a typedef, then all the printf formats that
reference size will need casts (and will still need 64-bit printf), or
some #defined format string.

We could do it if makes a big difference (looks like about 500 bytes in
the NAND code on powerpc), but I suspect there are better places to save
space in mtd, such as not building in default functions that are just
going to be overridden (or not selected in the first place).

-Scott


More information about the U-Boot mailing list