[lkml]   [2014]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 01/20] mips: octeon: convert to use unflatten_and_copy_device_tree
On Mon, Apr 7, 2014 at 12:46 PM, Andreas Herrmann
<> wrote:
> On Thu, Apr 03, 2014 at 05:16:44PM -0500, Rob Herring wrote:
>> From: Rob Herring <>
>> The octeon FDT code can be simplified by using
>> unflatten_and_copy_device_tree function. This removes all accesses to
>> FDT header data by the arch code.
> Hi Rob,
> I think (in general) this modification is ok. But I suggest to use
> following (slightly modified) version.

Having to compile each platform on MIPS sure is annoying. Reminds me
of ARM a few years ago. We need a good rant from Linus about MIPS. ;)

> - /* Copy the default tree from init memory. */
> - initial_boot_params = early_init_dt_alloc_memory_arch(dt_size, 8);
> - if (initial_boot_params == NULL)
> - panic("Could not allocate initial_boot_params");
> - memcpy(initial_boot_params, fdt, dt_size);
> + initial_boot_params = (void *)fdt;

Does calling early_init_devtree here work instead. This will add
parsing memory, initrd and command line. If you don't have those then
it should be a nop other than setting initial_boot_params. It should
only matter if your DT has these things and you want/need to ignore
them. Do this would get things more inline with other arches.


 \ /
  Last update: 2014-04-16 03:41    [W:0.066 / U:0.600 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site