]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: physmap-core: Prioritize ofparts for OF probe
authorLinus Walleij <linusw@kernel.org>
Wed, 28 Jan 2026 23:55:09 +0000 (00:55 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 29 Jan 2026 19:11:15 +0000 (20:11 +0100)
commit8a565e3ee1eccaf7570a1c107b68327ba1a68b84
tree3cc69eaf8f6ffc55d3b9503a1aefd78238ccc1c8
parentbcf8e207624d044a060ac4c6f9861f34ade41ca4
mtd: physmap-core: Prioritize ofparts for OF probe

Place the ofparts before RedBoot partitions in the OF probe
path: this makes it possible to override any existing
RedBoot partitions with fixed-partitions which may be necessary,
such as when you need to repartition the flash from Linux'
point of view but not necessary from the bootloaders point
of view.

This happens when a device such as Raidsonic IB-4220-B has
three partitions named "Kern", "Ramdisk" and "Application"
that we want to merge into one for more efficient use
of the flash memory in OpenWrt.

Signed-off-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/maps/physmap-core.c