Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: merge for-4.4 development into -next development

A few MAINTAINERS updates, and some DT binding/documentation fixups.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>

+18 -3
+6 -1
Documentation/devicetree/bindings/mtd/partition.txt
··· 6 6 as RedBoot. 7 7 8 8 The partition table should be a subnode of the mtd node and should be named 9 - 'partitions'. Partitions are defined in subnodes of the partitions node. 9 + 'partitions'. This node should have the following property: 10 + - compatible : (required) must be "fixed-partitions" 11 + Partitions are then defined in subnodes of the partitions node. 10 12 11 13 For backwards compatibility partitions as direct subnodes of the mtd device are 12 14 supported. This use is discouraged. ··· 40 38 41 39 flash@0 { 42 40 partitions { 41 + compatible = "fixed-partitions"; 43 42 #address-cells = <1>; 44 43 #size-cells = <1>; 45 44 ··· 58 55 59 56 flash@1 { 60 57 partitions { 58 + compatible = "fixed-partitions"; 61 59 #address-cells = <1>; 62 60 #size-cells = <2>; 63 61 ··· 72 68 73 69 flash@2 { 74 70 partitions { 71 + compatible = "fixed-partitions"; 75 72 #address-cells = <2>; 76 73 #size-cells = <2>; 77 74
+2
MAINTAINERS
··· 2449 2449 2450 2450 BROADCOM STB NAND FLASH DRIVER 2451 2451 M: Brian Norris <computersforpeace@gmail.com> 2452 + M: Kamal Dasu <kdasu.kdev@gmail.com> 2452 2453 L: linux-mtd@lists.infradead.org 2454 + L: bcm-kernel-feedback-list@broadcom.com 2453 2455 S: Maintained 2454 2456 F: drivers/mtd/nand/brcmnand/ 2455 2457
+10 -2
drivers/mtd/ofpart.c
··· 44 44 45 45 ofpart_node = of_get_child_by_name(mtd_node, "partitions"); 46 46 if (!ofpart_node) { 47 - pr_warn("%s: 'partitions' subnode not found on %s. Trying to parse direct subnodes as partitions.\n", 48 - master->name, mtd_node->full_name); 47 + /* 48 + * We might get here even when ofpart isn't used at all (e.g., 49 + * when using another parser), so don't be louder than 50 + * KERN_DEBUG 51 + */ 52 + pr_debug("%s: 'partitions' subnode not found on %s. Trying to parse direct subnodes as partitions.\n", 53 + master->name, mtd_node->full_name); 49 54 ofpart_node = mtd_node; 50 55 dedicated = false; 56 + } else if (!of_device_is_compatible(ofpart_node, "fixed-partitions")) { 57 + /* The 'partitions' subnode might be used by another parser */ 58 + return 0; 51 59 } 52 60 53 61 /* First count the subnodes */