aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/pending-4.9/404-mtd-add-more-helper-functions.patch
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2018-07-27 21:54:08 +0200
committerRafał Miłecki <rafal@milecki.pl>2018-07-27 22:16:24 +0200
commit2a598bbaa3f75b7051c2453a6ccf706191cf2153 (patch)
treed0f84b7cea12e91a390a53705249e6febfee626b /target/linux/generic/pending-4.9/404-mtd-add-more-helper-functions.patch
parent4c1aa64b4d804e77dfaa8d53e5ef699fcced4b18 (diff)
downloadupstream-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/404-mtd-add-more-helper-functions.patch')
-rw-r--r--target/linux/generic/pending-4.9/404-mtd-add-more-helper-functions.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/pending-4.9/404-mtd-add-more-helper-functions.patch b/target/linux/generic/pending-4.9/404-mtd-add-more-helper-functions.patch
index 076ec314b2..886dece4f7 100644
--- a/target/linux/generic/pending-4.9/404-mtd-add-more-helper-functions.patch
+++ b/target/linux/generic/pending-4.9/404-mtd-add-more-helper-functions.patch
@@ -11,7 +11,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
-@@ -779,6 +779,17 @@ run_parsers_by_type(struct mtd_part *sla
+@@ -763,6 +763,17 @@ run_parsers_by_type(struct mtd_part *sla
return nr_parts;
}
@@ -29,7 +29,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
#ifdef CONFIG_MTD_SPLIT_FIRMWARE_NAME
#define SPLIT_FIRMWARE_NAME CONFIG_MTD_SPLIT_FIRMWARE_NAME
#else
-@@ -1232,6 +1243,24 @@ int mtd_is_partition(const struct mtd_in
+@@ -1225,6 +1236,24 @@ int mtd_is_partition(const struct mtd_in
}
EXPORT_SYMBOL_GPL(mtd_is_partition);