[PATCH V9 0/4] mtd: read partitions compatible prop for "ofpart" type
peda at axentia.se
Thu Feb 1 06:32:45 PST 2018
On 2018-01-30 21:10, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal at milecki.pl>
> This patchset provides a proper support for flash device DT node with
> "partitions" subnode using "compatible" property. It's already
> documented in the: Documentation/devicetree/bindings/mtd/partition.txt
> We believed a previous version 8 was ready to go, but soon after landing
> in the linux-next we got a regression report from Peter.
I retested these four patches on-top of 4.15, and results are good.
With a faulty partition layout in the dtb, the old command-line layout
wins and things keep working, and with a good partition layout in the
dtb I can remove a bunch of command-line clutter.
Tested-by: Peter Rosin <peda at axentia.se>
No testing of the individual patches though, just the end result...
> This version takes a safe path by:
> 1) Respecting parsers order as specified in the default/driver-provided
> 2) Looking at "compatible" property only when "ofpart" type gets
> I double-checked the code and cannot think of any regression this could
> cause. I also hope this design (roughly discussed with Boris) can be
> acceptable for the mtd subsystem.
> This is of course 4.17 material at best.
> Brian Norris (1):
> mtd: partitions: add of_match_table parser matching
> Rafał Miłecki (3):
> mtd: partitions: add special treating for the "ofpart" parser type
> mtd: rename "ofpart" parser to "fixed-partitions" as it fits it better
> mtd: ofpart: add of_match_table with "fixed-partitions"
> drivers/mtd/mtdpart.c | 116 +++++++++++++++++++++++++++++++++++++----
> drivers/mtd/ofpart.c | 18 +++++--
> include/linux/mtd/partitions.h | 1 +
> 3 files changed, 121 insertions(+), 14 deletions(-)
More information about the linux-mtd