diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2017-02-07 11:59:07 +0100 |
---|---|---|
committer | Jonas Gorski <jonas.gorski@gmail.com> | 2017-06-04 10:40:00 +0200 |
commit | f62e02cf20c23b55e998edf6874c1a5de3a88c6d (patch) | |
tree | e7f858bd5b50590dcf860a71782b3d3e0ffd64eb /target/linux/brcm63xx/patches-4.4/000-4.5-11-mtd-physmap_of-assign-parent-for-the-concatenated-MT.patch | |
parent | d2985767392032ef6acc6b7689b0ff0b74f175db (diff) | |
download | mtk-20170518-f62e02cf20c23b55e998edf6874c1a5de3a88c6d.zip mtk-20170518-f62e02cf20c23b55e998edf6874c1a5de3a88c6d.tar.gz mtk-20170518-f62e02cf20c23b55e998edf6874c1a5de3a88c6d.tar.bz2 |
brcm63xx: update flash of_node patches to full patch set
Fixes missing of_node for SPI flash probed through devicetree.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'target/linux/brcm63xx/patches-4.4/000-4.5-11-mtd-physmap_of-assign-parent-for-the-concatenated-MT.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-4.4/000-4.5-11-mtd-physmap_of-assign-parent-for-the-concatenated-MT.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-4.4/000-4.5-11-mtd-physmap_of-assign-parent-for-the-concatenated-MT.patch b/target/linux/brcm63xx/patches-4.4/000-4.5-11-mtd-physmap_of-assign-parent-for-the-concatenated-MT.patch new file mode 100644 index 0000000..90eb6da --- /dev/null +++ b/target/linux/brcm63xx/patches-4.4/000-4.5-11-mtd-physmap_of-assign-parent-for-the-concatenated-MT.patch @@ -0,0 +1,27 @@ +From 8361a9b8cb6a9c71b7cf884a87b2532d8367c185 Mon Sep 17 00:00:00 2001 +From: Brian Norris <computersforpeace@gmail.com> +Date: Fri, 30 Oct 2015 20:33:30 -0700 +Subject: [PATCH 11/11] mtd: physmap_of: assign parent for the concatenated MTD + +If there is more than one map region for this device, then the +concatenated MTD will not have a parent device assigned to it -- only +the sub-devices (which are not actually registered with the framework) +will have their parents assigned. Let's assign the concatenated device +correctly. + +Signed-off-by: Brian Norris <computersforpeace@gmail.com> +Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com> +--- + drivers/mtd/maps/physmap_of.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/mtd/maps/physmap_of.c ++++ b/drivers/mtd/maps/physmap_of.c +@@ -271,6 +271,7 @@ static int of_flash_probe(struct platfor + if (err) + goto err_out; + ++ info->cmtd->dev.parent = &dev->dev; + mtd_set_of_node(info->cmtd, dp); + mtd_device_parse_register(info->cmtd, part_probe_types_def, NULL, + NULL, 0); |