[PATCH] powerpc/85xx: DTS - re-organize the SPI partitions property

Scott Wood scottwood at freescale.com
Wed Oct 2 05:37:16 EST 2013


On Mon, 2013-09-30 at 03:31 -0500, Hu Mingkai-B21284 wrote:
> 
> > -----Original Message-----
> > From: Wood Scott-B07421
> > Sent: Wednesday, September 25, 2013 3:37 AM
> > To: Hu Mingkai-B21284
> > Cc: Wood Scott-B07421; linuxppc-dev at ozlabs.org
> > Subject: Re: [PATCH] powerpc/85xx: DTS - re-organize the SPI partitions
> > property
> > 
> > Fixing U-Boot would make the problem go away without any issues with
> > partition compatibility.  Are you sure nobody's using these SPI
> > partitions without booting from SPI?  Even if nobody's using this, it
> > seems a wasteful solution.  These are pretty small flashes.
> > 
> Scott,
> 
> I will submit a patch in U-Boot to fix this issue. Some quick questions:
> 1. Should we set the SPI flash as MTDPARTS_DEFAULT?
> 2. Should we consider the partition for NAND/NOR in mtdparts?
> 3. We need to remove the partition table in device tree, right?

Fixing the U-Boot size problem is separate from changing how we do
partitioning, but yes, we should transition all flashes to using
mtdparts instead of device tree partitions.

As to when to remove them from the device tree, that's a bit tricky.
There's no guarantee when a user updates their U-Boot environment
relative to when they update their device tree.  It's better to have
the partitions appear twice than to not appear at all.  But we do want
to discourage the use of the device tree partitions, and it would be
bad if the descriptions don't match and a user ends up mixing the two.

-Scott





More information about the Linuxppc-dev mailing list