openwrt/target/linux/generic
Rafał Miłecki 15a0701cdd kernel: rewrite run_parsers_by_type() to use add_mtd_partitions()
Make run_parsers_by_type() more similar to the parse_mtd_partitions():
1. Use struct mtd_partitions
2. Use add_mtd_partitions()

This change simplifies run_parsers_by_type() by:
1. Dropping loop
2. Dropping code getting partition properties (name, offset, size)

Moreover this change allows passing more partitions details (e.g.
mask_flags).

One noticeable change introduced by this patch is adding parsed
partitions as children. This results in printing their *relative*
offsets which unifies this code with parse_mtd_partitions() behaviour.

Before:
[    1.785448] 0x00000018f800-0x000000fb0000 : "rootfs"
[    1.791642] mtd: device 4 (rootfs) set to be root filesystem
[    1.797537] 1 squashfs-split partitions found on MTD device rootfs
[    1.804009] 0x0000004e0000-0x000000fb0000 : "rootfs_data"

After:
[    1.785376] 0x00000018f800-0x000000fb0000 : "rootfs"
[    1.791601] mtd: device 4 (rootfs) set to be root filesystem
[    1.797491] 1 squashfs-split partitions found on MTD device rootfs
[    1.803936] Creating 1 MTD partitions on "rootfs":
[    1.808910] 0x000000350800-0x000000e20800 : "rootfs_data"

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2020-02-11 16:55:38 +01:00
..
backport-4.14 kernel: act_ctinfo: really fix backport this time 2020-01-24 14:35:31 +00:00
backport-4.19 kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
files swconfig: fix Broadcom b53 support 2020-01-12 14:12:50 +01:00
hack-4.14 kernel: bump 4.14 to 4.14.169 2020-02-04 18:10:13 +01:00
hack-4.19 kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
image treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
other-files kernel: move initramfs's init script out of base-files 2017-04-04 14:06:40 +02:00
pending-4.14 kernel: rewrite run_parsers_by_type() to use add_mtd_partitions() 2020-02-11 16:55:38 +01:00
pending-4.19 kernel: remove duplicate flash chip definition 2020-02-06 19:35:54 +02:00
pending-5.4 kernel: add support for GD25D05 SPI NOR 2020-02-04 18:10:13 +01:00
config-4.14 generic: update config-4.14 2020-01-12 16:27:33 +01:00
config-4.19 kernel: add SFP support for Methode DM7052 NBASE-T module 2020-01-21 22:32:48 +01:00
PATCHES