Skip to content

Commit 31f7c3a

Browse files
committed
Merge tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux
Pull device tree core updates from Grant Likely: "Generally minor changes. A bunch of bug fixes, particularly for initialization and some refactoring. Most notable change if feeding the entire flattened tree into the random pool at boot. May not be significant, but shouldn't hurt either" Tim Bird questions whether the boot time cost of the random feeding may be noticeable. And "add_device_randomness()" is definitely not some speed deamon of a function. * tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux: of/platform: add error reporting to of_amba_device_create() irq/of: Fix comment typo for irq_of_parse_and_map of: Feed entire flattened device tree into the random pool of/fdt: Clean up casting in unflattening path of/fdt: Remove duplicate memory clearing on FDT unflattening gpio: implement gpio-ranges binding document fix of: call __of_parse_phandle_with_args from of_parse_phandle of: introduce of_parse_phandle_with_fixed_args of: move of_parse_phandle() of: move documentation of of_parse_phandle_with_args of: Fix missing memory initialization on FDT unflattening of: consolidate definition of early_init_dt_alloc_memory_arch() of: Make of_get_phy_mode() return int i.s.o. const int include: dt-binding: input: create a DT header defining key codes. of/platform: Staticize of_platform_device_create_pdata() of: Specify initrd location using 64-bit dt: Typo fix OF: make of_property_for_each_{u32|string}() use parameters if OF is not enabled
2 parents ec5b103 + 2bc552d commit 31f7c3a

24 files changed

Lines changed: 787 additions & 190 deletions

File tree

‎Documentation/devicetree/bindings/net/can/sja1000.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Optional properties:
3737
If not specified or if the specified value is 0, the CLKOUT pin
3838
will be disabled.
3939

40-
- nxp,no-comparator-bypass : Allows to disable the CAN input comperator.
40+
- nxp,no-comparator-bypass : Allows to disable the CAN input comparator.
4141

4242
For further information, please have a look to the SJA1000 data sheet.
4343

‎arch/arc/kernel/devtree.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818
#include <asm/clk.h>
1919
#include <asm/mach_desc.h>
2020

21-
/* called from unflatten_device_tree() to bootstrap devicetree itself */
22-
void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
23-
{
24-
return __va(memblock_alloc(size, align));
25-
}
26-
2721
/**
2822
* setup_machine_fdt - Machine setup when an dtb was passed to the kernel
2923
* @dt: virtual address pointer to dt blob

‎arch/arc/mm/init.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,8 @@ void __init free_initrd_mem(unsigned long start, unsigned long end)
127127
#endif
128128

129129
#ifdef CONFIG_OF_FLATTREE
130-
void __init early_init_dt_setup_initrd_arch(unsigned long start,
131-
unsigned long end)
130+
void __init early_init_dt_setup_initrd_arch(u64 start, u64 end)
132131
{
133-
pr_err("%s(%lx, %lx)\n", __func__, start, end);
132+
pr_err("%s(%llx, %llx)\n", __func__, start, end);
134133
}
135134
#endif /* CONFIG_OF_FLATTREE */

‎arch/arm/mm/init.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static int __init parse_tag_initrd2(const struct tag *tag)
7878
__tagtable(ATAG_INITRD2, parse_tag_initrd2);
7979

8080
#ifdef CONFIG_OF_FLATTREE
81-
void __init early_init_dt_setup_initrd_arch(unsigned long start, unsigned long end)
81+
void __init early_init_dt_setup_initrd_arch(u64 start, u64 end)
8282
{
8383
phys_initrd_start = start;
8484
phys_initrd_size = end - start;

‎arch/arm64/kernel/setup.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
190190
memblock_add(base, size);
191191
}
192192

193-
void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
194-
{
195-
return __va(memblock_alloc(size, align));
196-
}
197-
198193
/*
199194
* Limit the memory size that was specified via FDT.
200195
*/

‎arch/arm64/mm/init.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ static unsigned long phys_initrd_size __initdata = 0;
4444

4545
phys_addr_t memstart_addr __read_mostly = 0;
4646

47-
void __init early_init_dt_setup_initrd_arch(unsigned long start,
48-
unsigned long end)
47+
void __init early_init_dt_setup_initrd_arch(u64 start, u64 end)
4948
{
5049
phys_initrd_start = start;
5150
phys_initrd_size = end - start;

‎arch/c6x/kernel/devicetree.c‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ void __init early_init_devtree(void *params)
3333

3434

3535
#ifdef CONFIG_BLK_DEV_INITRD
36-
void __init early_init_dt_setup_initrd_arch(unsigned long start,
37-
unsigned long end)
36+
void __init early_init_dt_setup_initrd_arch(u64 start, u64 end)
3837
{
3938
initrd_start = (unsigned long)__va(start);
4039
initrd_end = (unsigned long)__va(end);
@@ -46,8 +45,3 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
4645
{
4746
c6x_add_memory(base, size);
4847
}
49-
50-
void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
51-
{
52-
return __va(memblock_alloc(size, align));
53-
}

‎arch/metag/mm/init.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,9 @@ void free_initrd_mem(unsigned long start, unsigned long end)
407407
#endif
408408

409409
#ifdef CONFIG_OF_FLATTREE
410-
void __init early_init_dt_setup_initrd_arch(unsigned long start,
411-
unsigned long end)
410+
void __init early_init_dt_setup_initrd_arch(u64 start, u64 end)
412411
{
413-
pr_err("%s(%lx, %lx)\n",
412+
pr_err("%s(%llx, %llx)\n",
414413
__func__, start, end);
415414
}
416415
#endif /* CONFIG_OF_FLATTREE */

‎arch/microblaze/kernel/prom.c‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
4646
memblock_add(base, size);
4747
}
4848

49-
void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
50-
{
51-
return __va(memblock_alloc(size, align));
52-
}
53-
5449
#ifdef CONFIG_EARLY_PRINTK
5550
static char *stdout;
5651

@@ -136,8 +131,7 @@ void __init early_init_devtree(void *params)
136131
}
137132

138133
#ifdef CONFIG_BLK_DEV_INITRD
139-
void __init early_init_dt_setup_initrd_arch(unsigned long start,
140-
unsigned long end)
134+
void __init early_init_dt_setup_initrd_arch(u64 start, u64 end)
141135
{
142136
initrd_start = (unsigned long)__va(start);
143137
initrd_end = (unsigned long)__va(end);

‎arch/mips/kernel/prom.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
5858
}
5959

6060
#ifdef CONFIG_BLK_DEV_INITRD
61-
void __init early_init_dt_setup_initrd_arch(unsigned long start,
62-
unsigned long end)
61+
void __init early_init_dt_setup_initrd_arch(u64 start, u64 end)
6362
{
6463
initrd_start = (unsigned long)__va(start);
6564
initrd_end = (unsigned long)__va(end);

0 commit comments

Comments
 (0)