From 2a598bbaa3f75b7051c2453a6ccf706191cf2153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Fri, 27 Jul 2018 21:54:08 +0200 Subject: kernel: backport mtd support for subpartitions in DT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a new & warm feature that allows nesting partiitons in DT and mixing their types (e.g. static vs. dynamic). It's very useful for boards that have most partitions static but some of them require extra parsing (e.g. a "firmware" partition). It's required to successfully backport support for new devices using that new syntax in their DT files. Since brcm63xx has a custom alternative patch the upstream one is being reverted for it. The plan is to make brcm63xx use the upstream implementation. Signed-off-by: Rafał Miłecki --- .../161-mtd-part-add-generic-parsing-of-linux-part-probe.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'target/linux/generic/pending-4.14/161-mtd-part-add-generic-parsing-of-linux-part-probe.patch') diff --git a/target/linux/generic/pending-4.14/161-mtd-part-add-generic-parsing-of-linux-part-probe.patch b/target/linux/generic/pending-4.14/161-mtd-part-add-generic-parsing-of-linux-part-probe.patch index 0e858d93bb..80ff556a49 100644 --- a/target/linux/generic/pending-4.14/161-mtd-part-add-generic-parsing-of-linux-part-probe.patch +++ b/target/linux/generic/pending-4.14/161-mtd-part-add-generic-parsing-of-linux-part-probe.patch @@ -104,7 +104,7 @@ Signed-off-by: Hauke Mehrtens #include #include -@@ -851,6 +852,32 @@ void deregister_mtd_parser(struct mtd_pa +@@ -835,6 +836,32 @@ void deregister_mtd_parser(struct mtd_pa EXPORT_SYMBOL_GPL(deregister_mtd_parser); /* @@ -137,7 +137,7 @@ Signed-off-by: Hauke Mehrtens * Do not forget to update 'parse_mtd_partitions()' kerneldoc comment if you * are changing this array! */ -@@ -991,6 +1018,13 @@ int parse_mtd_partitions(struct mtd_info +@@ -983,6 +1010,13 @@ int parse_mtd_partitions(struct mtd_info struct mtd_partitions pparts = { }; struct mtd_part_parser *parser; int ret, err = 0; @@ -150,8 +150,8 @@ Signed-off-by: Hauke Mehrtens + } if (!types) - types = default_mtd_part_types; -@@ -1031,6 +1065,7 @@ int parse_mtd_partitions(struct mtd_info + types = mtd_is_partition(master) ? default_subpartition_types : +@@ -1024,6 +1058,7 @@ int parse_mtd_partitions(struct mtd_info if (ret < 0 && !err) err = ret; } -- cgit v1.2.3