···66as RedBoot.7788The partition table should be a subnode of the mtd node and should be named99-'partitions'. Partitions are defined in subnodes of the partitions node.99+'partitions'. This node should have the following property:1010+- compatible : (required) must be "fixed-partitions"1111+Partitions are then defined in subnodes of the partitions node.10121113For backwards compatibility partitions as direct subnodes of the mtd device are1214supported. This use is discouraged.···40384139flash@0 {4240 partitions {4141+ compatible = "fixed-partitions";4342 #address-cells = <1>;4443 #size-cells = <1>;4544···58555956flash@1 {6057 partitions {5858+ compatible = "fixed-partitions";6159 #address-cells = <1>;6260 #size-cells = <2>;6361···72687369flash@2 {7470 partitions {7171+ compatible = "fixed-partitions";7572 #address-cells = <2>;7673 #size-cells = <2>;7774
+2
MAINTAINERS
···2449244924502450BROADCOM STB NAND FLASH DRIVER24512451M: Brian Norris <computersforpeace@gmail.com>24522452+M: Kamal Dasu <kdasu.kdev@gmail.com>24522453L: linux-mtd@lists.infradead.org24542454+L: bcm-kernel-feedback-list@broadcom.com24532455S: Maintained24542456F: drivers/mtd/nand/brcmnand/24552457
+10-2
drivers/mtd/ofpart.c
···44444545 ofpart_node = of_get_child_by_name(mtd_node, "partitions");4646 if (!ofpart_node) {4747- pr_warn("%s: 'partitions' subnode not found on %s. Trying to parse direct subnodes as partitions.\n",4848- master->name, mtd_node->full_name);4747+ /*4848+ * We might get here even when ofpart isn't used at all (e.g.,4949+ * when using another parser), so don't be louder than5050+ * KERN_DEBUG5151+ */5252+ pr_debug("%s: 'partitions' subnode not found on %s. Trying to parse direct subnodes as partitions.\n",5353+ master->name, mtd_node->full_name);4954 ofpart_node = mtd_node;5055 dedicated = false;5656+ } else if (!of_device_is_compatible(ofpart_node, "fixed-partitions")) {5757+ /* The 'partitions' subnode might be used by another parser */5858+ return 0;5159 }52605361 /* First count the subnodes */