diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2018-07-27 21:54:08 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2018-07-27 22:16:24 +0200 |
commit | 2a598bbaa3f75b7051c2453a6ccf706191cf2153 (patch) | |
tree | d0f84b7cea12e91a390a53705249e6febfee626b /target/linux/generic/pending-4.9/161-mtd-part-add-generic-parsing-of-linux-part-probe.patch | |
parent | 4c1aa64b4d804e77dfaa8d53e5ef699fcced4b18 (diff) | |
download | upstream-2a598bbaa3f75b7051c2453a6ccf706191cf2153.tar.gz upstream-2a598bbaa3f75b7051c2453a6ccf706191cf2153.tar.bz2 upstream-2a598bbaa3f75b7051c2453a6ccf706191cf2153.zip |
kernel: backport mtd support for subpartitions in DT
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 <rafal@milecki.pl>
Diffstat (limited to 'target/linux/generic/pending-4.9/161-mtd-part-add-generic-parsing-of-linux-part-probe.patch')
-rw-r--r-- | target/linux/generic/pending-4.9/161-mtd-part-add-generic-parsing-of-linux-part-probe.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/generic/pending-4.9/161-mtd-part-add-generic-parsing-of-linux-part-probe.patch b/target/linux/generic/pending-4.9/161-mtd-part-add-generic-parsing-of-linux-part-probe.patch index e2a0e4887d..1b6290fca2 100644 --- a/target/linux/generic/pending-4.9/161-mtd-part-add-generic-parsing-of-linux-part-probe.patch +++ b/target/linux/generic/pending-4.9/161-mtd-part-add-generic-parsing-of-linux-part-probe.patch @@ -114,7 +114,7 @@ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> #include <linux/err.h> #include <linux/of.h> -@@ -843,6 +844,42 @@ void deregister_mtd_parser(struct mtd_pa +@@ -827,6 +828,42 @@ void deregister_mtd_parser(struct mtd_pa EXPORT_SYMBOL_GPL(deregister_mtd_parser); /* @@ -157,7 +157,7 @@ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> * Do not forget to update 'parse_mtd_partitions()' kerneldoc comment if you * are changing this array! */ -@@ -983,6 +1020,13 @@ int parse_mtd_partitions(struct mtd_info +@@ -975,6 +1012,13 @@ int parse_mtd_partitions(struct mtd_info struct mtd_partitions pparts = { }; struct mtd_part_parser *parser; int ret, err = 0; @@ -170,8 +170,8 @@ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> + } if (!types) - types = default_mtd_part_types; -@@ -1023,6 +1067,7 @@ int parse_mtd_partitions(struct mtd_info + types = mtd_is_partition(master) ? default_subpartition_types : +@@ -1016,6 +1060,7 @@ int parse_mtd_partitions(struct mtd_info if (ret < 0 && !err) err = ret; } |