Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Linus Walleij and committed by
Miquel Raynal
8a565e3e bcf8e207

+1 -1
+1 -1
drivers/mtd/maps/physmap-core.c
··· 268 268 MODULE_DEVICE_TABLE(of, of_flash_match); 269 269 270 270 static const char * const of_default_part_probes[] = { 271 - "cmdlinepart", "RedBoot", "ofpart", "ofoldpart", NULL 271 + "cmdlinepart", "ofpart", "ofoldpart", "RedBoot", NULL 272 272 }; 273 273 274 274 static const char * const *of_get_part_probes(struct platform_device *dev)