Skip to content

Commit 34ec4de

Browse files
committed
Merge tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux
Pull device tree fixes and reverts from Grant Likely: "One bug fix and three reverts. The reverts back out the slightly controversial feeding the entire device tree into the random pool and the reserved-memory binding which isn't fully baked yet. Expect the reserved-memory patches at least to resurface for v3.13. The bug fixes removes a scary but harmless warning on SPARC that was introduced in the v3.12 merge window. v3.13 will contain a proper fix that makes the new code work on SPARC. On the plus side, the diffstat looks *awesome*. I love removing lines of code" * tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux: Revert "drivers: of: add initialization code for dma reserved memory" Revert "ARM: init: add support for reserved memory defined by device tree" Revert "of: Feed entire flattened device tree into the random pool" of: fix unnecessary warning on missing /cpus node
2 parents ba0a062 + 1931ee1 commit 34ec4de

9 files changed

Lines changed: 1 addition & 384 deletions

File tree

‎Documentation/devicetree/bindings/memory.txt‎

Lines changed: 0 additions & 168 deletions
This file was deleted.

‎arch/arm/mm/init.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <linux/nodemask.h>
1818
#include <linux/initrd.h>
1919
#include <linux/of_fdt.h>
20-
#include <linux/of_reserved_mem.h>
2120
#include <linux/highmem.h>
2221
#include <linux/gfp.h>
2322
#include <linux/memblock.h>
@@ -379,8 +378,6 @@ void __init arm_memblock_init(struct meminfo *mi,
379378
if (mdesc->reserve)
380379
mdesc->reserve();
381380

382-
early_init_dt_scan_reserved_mem();
383-
384381
/*
385382
* reserve memory for DMA contigouos allocations,
386383
* must come from DMA area inside low memory

‎drivers/of/Kconfig‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,4 @@ config OF_MTD
7474
depends on MTD
7575
def_bool y
7676

77-
config OF_RESERVED_MEM
78-
depends on OF_FLATTREE && (DMA_CMA || (HAVE_GENERIC_DMA_COHERENT && HAVE_MEMBLOCK))
79-
def_bool y
80-
help
81-
Initialization code for DMA reserved memory
82-
8377
endmenu # OF

‎drivers/of/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ obj-$(CONFIG_OF_MDIO) += of_mdio.o
99
obj-$(CONFIG_OF_PCI) += of_pci.o
1010
obj-$(CONFIG_OF_PCI_IRQ) += of_pci_irq.o
1111
obj-$(CONFIG_OF_MTD) += of_mtd.o
12-
obj-$(CONFIG_OF_RESERVED_MEM) += of_reserved_mem.o

‎drivers/of/base.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,8 @@ struct device_node *of_get_cpu_node(int cpu, unsigned int *thread)
303303
struct device_node *cpun, *cpus;
304304

305305
cpus = of_find_node_by_path("/cpus");
306-
if (!cpus) {
307-
pr_warn("Missing cpus node, bailing out\n");
306+
if (!cpus)
308307
return NULL;
309-
}
310308

311309
for_each_child_of_node(cpus, cpun) {
312310
if (of_node_cmp(cpun->type, "cpu"))

‎drivers/of/fdt.c‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <linux/string.h>
1919
#include <linux/errno.h>
2020
#include <linux/slab.h>
21-
#include <linux/random.h>
2221

2322
#include <asm/setup.h> /* for COMMAND_LINE_SIZE */
2423
#ifdef CONFIG_PPC
@@ -803,14 +802,3 @@ void __init unflatten_device_tree(void)
803802
}
804803

805804
#endif /* CONFIG_OF_EARLY_FLATTREE */
806-
807-
/* Feed entire flattened device tree into the random pool */
808-
static int __init add_fdt_randomness(void)
809-
{
810-
if (initial_boot_params)
811-
add_device_randomness(initial_boot_params,
812-
be32_to_cpu(initial_boot_params->totalsize));
813-
814-
return 0;
815-
}
816-
core_initcall(add_fdt_randomness);

0 commit comments

Comments
 (0)