aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-handheld-4.4/sharpslpart/0005-mtd-nand-tmio-Register-partitions-using-the-parsers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-handheld-4.4/sharpslpart/0005-mtd-nand-tmio-Register-partitions-using-the-parsers.patch')
-rw-r--r--recipes-kernel/linux/linux-handheld-4.4/sharpslpart/0005-mtd-nand-tmio-Register-partitions-using-the-parsers.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-handheld-4.4/sharpslpart/0005-mtd-nand-tmio-Register-partitions-using-the-parsers.patch b/recipes-kernel/linux/linux-handheld-4.4/sharpslpart/0005-mtd-nand-tmio-Register-partitions-using-the-parsers.patch
new file mode 100644
index 0000000..e1d3835
--- /dev/null
+++ b/recipes-kernel/linux/linux-handheld-4.4/sharpslpart/0005-mtd-nand-tmio-Register-partitions-using-the-parsers.patch
@@ -0,0 +1,35 @@
+From e75122abc6568d2f7f4663f3621e427ea0663d0c Mon Sep 17 00:00:00 2001
+From: Andrea Adami <andrea.adami@gmail.com>
+Date: Mon, 14 Aug 2017 16:34:21 +0200
+Subject: [PATCH v5 5/9] mtd: nand: tmio: Register partitions using the parsers
+
+With the introduction of sharpslpart partition parser we can now read the
+offsets from NAND: we specify the list of the parsers as platform data, with
+cmdlinepart and ofpart parsers first allowing to override the part. table
+written in NAND. This is done in the board files using this driver.
+
+Use now these parsers.
+
+Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
+---
+ drivers/mtd/nand/tmio_nand.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c
+index befddf0..142c99d 100644
+--- a/drivers/mtd/nand/tmio_nand.c
++++ b/drivers/mtd/nand/tmio_nand.c
+@@ -439,7 +439,9 @@ static int tmio_probe(struct platform_device *dev)
+ goto err_irq;
+ }
+ /* Register the partitions */
+- retval = mtd_device_parse_register(mtd, NULL, NULL,
++ retval = mtd_device_parse_register(mtd,
++ data ? data->part_parsers : NULL,
++ NULL,
+ data ? data->partition : NULL,
+ data ? data->num_partitions : 0);
+ if (!retval)
+--
+2.7.4
+