linux-mips
[Top] [All Lists]

Re: [PATCH 1/2] of/flattree: Eliminate need to provide early_init_dt_sca

To: David Daney <ddaney@caviumnetworks.com>
Subject: Re: [PATCH 1/2] of/flattree: Eliminate need to provide early_init_dt_scan_chosen_arch
From: Grant Likely <grant.likely@secretlab.ca>
Date: Thu, 14 Oct 2010 22:53:53 -0600
Cc: ralf@linux-mips.org, benh@kernel.crashing.org, dediao@cisco.com, linux-mips@linux-mips.org, monstr@monstr.eu, dvomlehn@cisco.com, devicetree-discuss@lists.ozlabs.org
In-reply-to: <4CB7713C.9040303@caviumnetworks.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20101013064352.2743.80378.stgit@localhost6.localdomain6> <4CB7713C.9040303@caviumnetworks.com>
Sender: linux-mips-bounce@linux-mips.org
On Thu, Oct 14, 2010 at 3:08 PM, David Daney <ddaney@caviumnetworks.com> wrote:
> On 10/12/2010 11:44 PM, Grant Likely wrote:
>>
>> This patch refactors the early init parsing of the chosen node so that
>> architectures aren't forced to provide an empty implementation of
>> early_init_dt_scan_chosen_arch.  Instead, if an architecture wants to
>> do something different, it can either use a wrapper function around
>> early_init_dt_scan_chosen(), or it can replace it altogether.
>>
>> This patch was written in preparation to adding device tree support to
>> both x86 ad MIPS.
>>
>> Signed-off-by: Grant Likely<grant.likely@secretlab.ca>
>
> In conjunction with my 'MIPS: Add some irq definitins required by OF' and
> the '2/2 of/mips: Add device tree support to MIPS' patches, I can enable
> CONFIG_USE_OF, and build and run a kernel on my Octeon.  I haven't started
> using the device tree yet, but this is a good start.
>
> You can add my...
>
> Tested-by: David Daney <ddaney@caviumnetworks.com>

Thanks David.  I'll add your tags.

What do you think Ralf?  Should I merge these two patches up for
2.6.37?  As mentioned on my other reply, David's "MIPS: add some irq
definitions required by OF" patch isn't needed in my current
next-devicetree branch.

g.

>
>
>> ---
>>  arch/microblaze/kernel/prom.c |    5 -----
>>  arch/powerpc/kernel/prom.c    |   12 ++++++++++--
>>  drivers/of/fdt.c              |    2 --
>>  include/linux/of_fdt.h        |    2 +-
>>  4 files changed, 11 insertions(+), 10 deletions(-)
>
> [...]
>



-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

<Prev in Thread] Current Thread [Next in Thread>