[source] brcm63xx: do not require fixed partitions when probing from DT

LEDE Commits lede-commits at lists.infradead.org
Sun Jun 4 02:35:40 PDT 2017


jogo pushed a commit to source.git, branch master:
https://git.lede-project.org/31c3ac11182f24f20340ba9a8c8fa0470433145f

commit 31c3ac11182f24f20340ba9a8c8fa0470433145f
Author: Jonas Gorski <jonas.gorski at gmail.com>
AuthorDate: Tue Feb 7 14:20:25 2017 +0100

    brcm63xx: do not require fixed partitions when probing from DT
    
    Allow the parser to be invoked from DT without fixed cfe/linux/nvram
    partitions. This allows flash to be probed from DT also for multi
    flash-size images.
    
    Signed-off-by: Jonas Gorski <jonas.gorski at gmail.com>
---
 .../brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch b/target/linux/brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch
index 330ec1e..d208a07 100644
--- a/target/linux/brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch
+++ b/target/linux/brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch
@@ -342,7 +342,7 @@
 +				    struct mtd_partition **pparts,
 +				    struct mtd_part_parser_data *data)
 +{
-+	if (mtd_get_of_node(master))
++	if (mtd_get_of_node(master) && of_get_child_count(mtd_get_of_node(master)))
 +		return bcm63xx_parse_cfe_partitions_of(master, pparts, data);
 +	else
 +		return bcm63xx_parse_cfe_partitions(master, pparts, data);



More information about the lede-commits mailing list