From edf3363959d3c43235dac2e973851ad572f082ae Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Wed, 21 Sep 2022 10:43:55 +0200 Subject: kernel: backport mtd dynamic partition patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport upstream solution that permits to declare nvmem cells with dynamic partition defined by special parser. This provide an OF node for NVMEM and connect it to the defined dynamic partition. Signed-off-by: Christian Marangi Signed-off-by: Rafał Miłecki (cherry picked from commit 1a9ee367343edce263f82cc91a49d796c9d45ea3) --- .../linux/generic/pending-5.4/480-mtd-set-rootfs-to-be-root-dev.patch | 2 +- .../generic/pending-5.4/495-mtd-core-add-get_mtd_device_by_node.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/generic/pending-5.4') diff --git a/target/linux/generic/pending-5.4/480-mtd-set-rootfs-to-be-root-dev.patch b/target/linux/generic/pending-5.4/480-mtd-set-rootfs-to-be-root-dev.patch index 95863d6edb..1189ce0f89 100644 --- a/target/linux/generic/pending-5.4/480-mtd-set-rootfs-to-be-root-dev.patch +++ b/target/linux/generic/pending-5.4/480-mtd-set-rootfs-to-be-root-dev.patch @@ -20,7 +20,7 @@ Signed-off-by: Gabor Juhos #include #include -@@ -699,6 +700,15 @@ int add_mtd_device(struct mtd_info *mtd) +@@ -760,6 +761,15 @@ int add_mtd_device(struct mtd_info *mtd) of this try_ nonsense, and no bitching about it either. :) */ __module_get(THIS_MODULE); diff --git a/target/linux/generic/pending-5.4/495-mtd-core-add-get_mtd_device_by_node.patch b/target/linux/generic/pending-5.4/495-mtd-core-add-get_mtd_device_by_node.patch index d17106bfbc..a73775783e 100644 --- a/target/linux/generic/pending-5.4/495-mtd-core-add-get_mtd_device_by_node.patch +++ b/target/linux/generic/pending-5.4/495-mtd-core-add-get_mtd_device_by_node.patch @@ -17,7 +17,7 @@ Reviewed-by: Miquel Raynal --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c -@@ -1081,6 +1081,44 @@ out_unlock: +@@ -1142,6 +1142,44 @@ out_unlock: } EXPORT_SYMBOL_GPL(get_mtd_device_nm); -- cgit v1.2.3