mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-24 20:54:24 +08:00
arm: mvebu: turris_omnia: Fix MTD partitions order for Linux
Linux enumerates MTD partitions in DTB order, while the fdt_add_subnode()
function puts a new subnode at the beginning.
To fix this, put MTD partitions into DTB in reverse order.
Fixes: 92f36c8e74
("arm: mvebu: turris_omnia: fixup MTD partitions in Linux' DTB")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
e6571f38c9
commit
59102987be
@ -603,7 +603,7 @@ static bool fixup_mtd_partitions(void *blob, int offset, struct mtd_info *mtd)
|
||||
|
||||
mtd_probe_devices();
|
||||
|
||||
list_for_each_entry(slave, &mtd->partitions, node) {
|
||||
list_for_each_entry_reverse(slave, &mtd->partitions, node) {
|
||||
char name[32];
|
||||
int part;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user