Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Guenter Roeck
On 10/18/2013 06:49 PM, Michael Bohan wrote: On Fri, Oct 18, 2013 at 04:20:09PM -0500, Rob Herring wrote: On 10/18/2013 02:32 PM, Michael Bohan wrote: My preference is probably straight libfdt calls, but if others think that unpacking is a better solution, I'm able to go that route as well. My

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Michael Bohan
On Fri, Oct 18, 2013 at 04:20:09PM -0500, Rob Herring wrote: > On 10/18/2013 02:32 PM, Michael Bohan wrote: > > My preference is probably straight libfdt calls, but if others > > think that unpacking is a better solution, I'm able to go that > > route as well. My only concern there is that we

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Michael Bohan
On Fri, Oct 18, 2013 at 07:38:04PM +0100, Mark Rutland wrote: Hi Mark, > On Fri, Oct 18, 2013 at 01:44:07AM +0100, Guenter Roeck wrote: > > On 10/17/2013 04:51 PM, Michael Bohan wrote: > > > On Wed, Oct 16, 2013 at 09:54:27PM -0700, Guenter Roeck wrote: > > >> On 10/16/2013 05:27 PM, Michael

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Rob Herring
On 10/18/2013 02:32 PM, Michael Bohan wrote: > On Fri, Oct 18, 2013 at 09:30:32AM -0700, David Daney wrote: >> On 10/18/2013 08:57 AM, Rob Herring wrote: >> [...] >>> >>> Unflattening is definitely the right >>> direction to go here. >>> >> >> I wonder if that is really true. >> >> The device tree

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Michael Bohan
On Fri, Oct 18, 2013 at 09:30:32AM -0700, David Daney wrote: > On 10/18/2013 08:57 AM, Rob Herring wrote: > [...] > > > >Unflattening is definitely the right > >direction to go here. > > > > I wonder if that is really true. > > The device tree in question is very short lived, and used to control

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Mark Rutland
Hi all, Guenter, thanks for adding devicetree to Cc. On Fri, Oct 18, 2013 at 01:44:07AM +0100, Guenter Roeck wrote: > On 10/17/2013 04:51 PM, Michael Bohan wrote: > > On Wed, Oct 16, 2013 at 09:54:27PM -0700, Guenter Roeck wrote: > >> On 10/16/2013 05:27 PM, Michael Bohan wrote: > >>> My

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread David Daney
On 10/18/2013 08:57 AM, Rob Herring wrote: [...] Unflattening is definitely the right direction to go here. I wonder if that is really true. The device tree in question is very short lived, and used to control the configuration of some hardware device when loading the driver. The use of

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Guenter Roeck
On Fri, Oct 18, 2013 at 10:57:24AM -0500, Rob Herring wrote: > On 10/18/2013 08:28 AM, Pantelis Antoniou wrote: > > Hi Michael, > > > > On Oct 18, 2013, at 5:54 AM, Michael Bohan wrote: > > > >> On Thu, Oct 17, 2013 at 05:44:07PM -0700, Guenter Roeck wrote: > >>> On 10/17/2013 04:51 PM, Michael

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Rob Herring
On 10/18/2013 08:28 AM, Pantelis Antoniou wrote: > Hi Michael, > > On Oct 18, 2013, at 5:54 AM, Michael Bohan wrote: > >> On Thu, Oct 17, 2013 at 05:44:07PM -0700, Guenter Roeck wrote: >>> On 10/17/2013 04:51 PM, Michael Bohan wrote: On Wed, Oct 16, 2013 at 09:54:27PM -0700, Guenter Roeck

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Pantelis Antoniou
Hi Michael, On Oct 18, 2013, at 5:54 AM, Michael Bohan wrote: > On Thu, Oct 17, 2013 at 05:44:07PM -0700, Guenter Roeck wrote: >> On 10/17/2013 04:51 PM, Michael Bohan wrote: >>> On Wed, Oct 16, 2013 at 09:54:27PM -0700, Guenter Roeck wrote: Still, what prevents you from unflattening it and

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Pantelis Antoniou
Hi Michael, On Oct 18, 2013, at 5:54 AM, Michael Bohan wrote: On Thu, Oct 17, 2013 at 05:44:07PM -0700, Guenter Roeck wrote: On 10/17/2013 04:51 PM, Michael Bohan wrote: On Wed, Oct 16, 2013 at 09:54:27PM -0700, Guenter Roeck wrote: Still, what prevents you from unflattening it and just

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Rob Herring
On 10/18/2013 08:28 AM, Pantelis Antoniou wrote: Hi Michael, On Oct 18, 2013, at 5:54 AM, Michael Bohan wrote: On Thu, Oct 17, 2013 at 05:44:07PM -0700, Guenter Roeck wrote: On 10/17/2013 04:51 PM, Michael Bohan wrote: On Wed, Oct 16, 2013 at 09:54:27PM -0700, Guenter Roeck wrote: Still,

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Guenter Roeck
On Fri, Oct 18, 2013 at 10:57:24AM -0500, Rob Herring wrote: On 10/18/2013 08:28 AM, Pantelis Antoniou wrote: Hi Michael, On Oct 18, 2013, at 5:54 AM, Michael Bohan wrote: On Thu, Oct 17, 2013 at 05:44:07PM -0700, Guenter Roeck wrote: On 10/17/2013 04:51 PM, Michael Bohan wrote:

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread David Daney
On 10/18/2013 08:57 AM, Rob Herring wrote: [...] Unflattening is definitely the right direction to go here. I wonder if that is really true. The device tree in question is very short lived, and used to control the configuration of some hardware device when loading the driver. The use of

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Mark Rutland
Hi all, Guenter, thanks for adding devicetree to Cc. On Fri, Oct 18, 2013 at 01:44:07AM +0100, Guenter Roeck wrote: On 10/17/2013 04:51 PM, Michael Bohan wrote: On Wed, Oct 16, 2013 at 09:54:27PM -0700, Guenter Roeck wrote: On 10/16/2013 05:27 PM, Michael Bohan wrote: My motivation is

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Michael Bohan
On Fri, Oct 18, 2013 at 09:30:32AM -0700, David Daney wrote: On 10/18/2013 08:57 AM, Rob Herring wrote: [...] Unflattening is definitely the right direction to go here. I wonder if that is really true. The device tree in question is very short lived, and used to control the

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Rob Herring
On 10/18/2013 02:32 PM, Michael Bohan wrote: On Fri, Oct 18, 2013 at 09:30:32AM -0700, David Daney wrote: On 10/18/2013 08:57 AM, Rob Herring wrote: [...] Unflattening is definitely the right direction to go here. I wonder if that is really true. The device tree in question is very

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Michael Bohan
On Fri, Oct 18, 2013 at 07:38:04PM +0100, Mark Rutland wrote: Hi Mark, On Fri, Oct 18, 2013 at 01:44:07AM +0100, Guenter Roeck wrote: On 10/17/2013 04:51 PM, Michael Bohan wrote: On Wed, Oct 16, 2013 at 09:54:27PM -0700, Guenter Roeck wrote: On 10/16/2013 05:27 PM, Michael Bohan wrote:

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Michael Bohan
On Fri, Oct 18, 2013 at 04:20:09PM -0500, Rob Herring wrote: On 10/18/2013 02:32 PM, Michael Bohan wrote: My preference is probably straight libfdt calls, but if others think that unpacking is a better solution, I'm able to go that route as well. My only concern there is that we provide a

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-18 Thread Guenter Roeck
On 10/18/2013 06:49 PM, Michael Bohan wrote: On Fri, Oct 18, 2013 at 04:20:09PM -0500, Rob Herring wrote: On 10/18/2013 02:32 PM, Michael Bohan wrote: My preference is probably straight libfdt calls, but if others think that unpacking is a better solution, I'm able to go that route as well. My

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-17 Thread Michael Bohan
On Thu, Oct 17, 2013 at 05:44:07PM -0700, Guenter Roeck wrote: > On 10/17/2013 04:51 PM, Michael Bohan wrote: > >On Wed, Oct 16, 2013 at 09:54:27PM -0700, Guenter Roeck wrote: > >>Still, what prevents you from unflattening it and just using the > >>normal device tree functions as David suggested ?

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-17 Thread Guenter Roeck
On 10/17/2013 04:51 PM, Michael Bohan wrote: On Wed, Oct 16, 2013 at 09:54:27PM -0700, Guenter Roeck wrote: On 10/16/2013 05:27 PM, Michael Bohan wrote: My motivation is actually to use the fdt format as a firmware. I have a requirement to express driver metadata that's loadable >from the

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-17 Thread Michael Bohan
On Wed, Oct 16, 2013 at 09:54:27PM -0700, Guenter Roeck wrote: > On 10/16/2013 05:27 PM, Michael Bohan wrote: > >My motivation is actually to use the fdt format as a firmware. > >I have a requirement to express driver metadata that's loadable > >from the filesystem. This data is not reasonable to

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-17 Thread Michael Bohan
On Wed, Oct 16, 2013 at 09:54:27PM -0700, Guenter Roeck wrote: On 10/16/2013 05:27 PM, Michael Bohan wrote: My motivation is actually to use the fdt format as a firmware. I have a requirement to express driver metadata that's loadable from the filesystem. This data is not reasonable to place

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-17 Thread Guenter Roeck
On 10/17/2013 04:51 PM, Michael Bohan wrote: On Wed, Oct 16, 2013 at 09:54:27PM -0700, Guenter Roeck wrote: On 10/16/2013 05:27 PM, Michael Bohan wrote: My motivation is actually to use the fdt format as a firmware. I have a requirement to express driver metadata that's loadable from the

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-17 Thread Michael Bohan
On Thu, Oct 17, 2013 at 05:44:07PM -0700, Guenter Roeck wrote: On 10/17/2013 04:51 PM, Michael Bohan wrote: On Wed, Oct 16, 2013 at 09:54:27PM -0700, Guenter Roeck wrote: Still, what prevents you from unflattening it and just using the normal device tree functions as David suggested ? I'm

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-16 Thread Guenter Roeck
On 10/16/2013 05:27 PM, Michael Bohan wrote: On Wed, Oct 16, 2013 at 04:39:03PM -0700, David Daney wrote: On 10/16/2013 04:27 PM, Michael Bohan wrote: Ever since the following commit, libfdt has been available for usage in the kernel: commit ab25383983fb8d7786696f5371e75e79c3e9a405

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-16 Thread Michael Bohan
On Wed, Oct 16, 2013 at 04:39:03PM -0700, David Daney wrote: > On 10/16/2013 04:27 PM, Michael Bohan wrote: > >Ever since the following commit, libfdt has been available for > >usage in the kernel: > > > > commit ab25383983fb8d7786696f5371e75e79c3e9a405 > > Author: David Daney > >

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-16 Thread David Daney
On 10/16/2013 04:27 PM, Michael Bohan wrote: Ever since the following commit, libfdt has been available for usage in the kernel: commit ab25383983fb8d7786696f5371e75e79c3e9a405 Author: David Daney Date: Thu Jul 5 18:12:38 2012 +0200 of/lib: Allow scripts/dtc/libfdt

[PATCH] of/lib: Export fdt routines to modules

2013-10-16 Thread Michael Bohan
Ever since the following commit, libfdt has been available for usage in the kernel: commit ab25383983fb8d7786696f5371e75e79c3e9a405 Author: David Daney Date: Thu Jul 5 18:12:38 2012 +0200 of/lib: Allow scripts/dtc/libfdt to be used from kernel code Export these functions

[PATCH] of/lib: Export fdt routines to modules

2013-10-16 Thread Michael Bohan
Ever since the following commit, libfdt has been available for usage in the kernel: commit ab25383983fb8d7786696f5371e75e79c3e9a405 Author: David Daney david.da...@cavium.com Date: Thu Jul 5 18:12:38 2012 +0200 of/lib: Allow scripts/dtc/libfdt to be used from kernel code

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-16 Thread David Daney
On 10/16/2013 04:27 PM, Michael Bohan wrote: Ever since the following commit, libfdt has been available for usage in the kernel: commit ab25383983fb8d7786696f5371e75e79c3e9a405 Author: David Daney david.da...@cavium.com Date: Thu Jul 5 18:12:38 2012 +0200 of/lib:

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-16 Thread Michael Bohan
On Wed, Oct 16, 2013 at 04:39:03PM -0700, David Daney wrote: On 10/16/2013 04:27 PM, Michael Bohan wrote: Ever since the following commit, libfdt has been available for usage in the kernel: commit ab25383983fb8d7786696f5371e75e79c3e9a405 Author: David Daney

Re: [PATCH] of/lib: Export fdt routines to modules

2013-10-16 Thread Guenter Roeck
On 10/16/2013 05:27 PM, Michael Bohan wrote: On Wed, Oct 16, 2013 at 04:39:03PM -0700, David Daney wrote: On 10/16/2013 04:27 PM, Michael Bohan wrote: Ever since the following commit, libfdt has been available for usage in the kernel: commit ab25383983fb8d7786696f5371e75e79c3e9a405