Skip to content

Commit 8a565e3

Browse files
linuswmiquelraynal
authored andcommitted
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>
1 parent bcf8e20 commit 8a565e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mtd/maps/physmap-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ static const struct of_device_id of_flash_match[] = {
268268
MODULE_DEVICE_TABLE(of, of_flash_match);
269269

270270
static const char * const of_default_part_probes[] = {
271-
"cmdlinepart", "RedBoot", "ofpart", "ofoldpart", NULL
271+
"cmdlinepart", "ofpart", "ofoldpart", "RedBoot", NULL
272272
};
273273

274274
static const char * const *of_get_part_probes(struct platform_device *dev)

0 commit comments

Comments
 (0)