* Using devices trees on X86
@ 2010-06-28 17:57 Stephen Neuendorffer
[not found] ` <0bcc23b9-2cbd-4465-b17c-7b3c2dff9fd3-+Ck8Kgl/v09CYczPSvLbDrjjLBE8jN/0@public.gmane.org>
2010-06-29 2:38 ` Stephen Rothwell
0 siblings, 2 replies; 38+ messages in thread
From: Stephen Neuendorffer @ 2010-06-28 17:57 UTC (permalink / raw)
To: Grant Likely, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
Grant,
OK, here's the current set of patches... The end goal of which is to be
able to parse a device
tree and generate a set of struct device objects on any architecture,
but specifically X86.
I can't see that much of this is anywhere near
final form, hence the lack of signed-off-by lines. It does compile on
X86, although it's not
clear that I actually get any devices discovered behind the PCI bus yet.
I'll summarize a couple
of issues, that you can see in somewhat concrete form in the patches:
1) no _ALIGN on x86, which you've already dealt with
2) config OF is currently implemented in the architecture code. This
should be non-architecture dependent and selected by the arches that
need it.
3) Theres a bunch of support functions that drivers/of requires. Some
are just stubs and some seem to actually
do something non-trivial (like the SMP affinity mappings). Probably all
of this should get stubs with weak symbols so that the arches don't have
to do anything special, especially since I expect pushback from adding
this architecture code "Just for device trees".
Comments greatly appreciated, in particular if you have
likely-to-be-easy-to-get-accepted suggestions for 3), or feel like
carefully solving 2) in
a way which doesn't bork the existing of-based arches.
Steve
This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: Using devices trees on X86
[not found] ` <0bcc23b9-2cbd-4465-b17c-7b3c2dff9fd3-+Ck8Kgl/v09CYczPSvLbDrjjLBE8jN/0@public.gmane.org>
@ 2010-06-28 18:08 ` Grant Likely
0 siblings, 0 replies; 38+ messages in thread
From: Grant Likely @ 2010-06-28 18:08 UTC (permalink / raw)
To: Stephen Neuendorffer; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
On Mon, Jun 28, 2010 at 10:57 AM, Stephen Neuendorffer
<stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org> wrote:
> Grant,
>
> OK, here's the current set of patches... The end goal of which is to be
> able to parse a device
> tree and generate a set of struct device objects on any architecture,
> but specifically X86.
> I can't see that much of this is anywhere near
> final form, hence the lack of signed-off-by lines. It does compile on
> X86, although it's not
> clear that I actually get any devices discovered behind the PCI bus yet.
> I'll summarize a couple
> of issues, that you can see in somewhat concrete form in the patches:
Thanks Stephen.
> 1) no _ALIGN on x86, which you've already dealt with
> 2) config OF is currently implemented in the architecture code. This
> should be non-architecture dependent and selected by the arches that
> need it.
Agreed. I've been thinking the same thing. Just haven't gotten
around to it yet.
> 3) Theres a bunch of support functions that drivers/of requires. Some
> are just stubs and some seem to actually
> do something non-trivial (like the SMP affinity mappings). Probably all
> of this should get stubs with weak symbols so that the arches don't have
> to do anything special, especially since I expect pushback from adding
> this architecture code "Just for device trees".
Yes. I expect to slowly push these instances down and get rid of them
before I have a final set of core ARM device tree patches ready for
merging.
> Comments greatly appreciated, in particular if you have
> likely-to-be-easy-to-get-accepted suggestions for 3), or feel like
> carefully solving 2) in
> a way which doesn't bork the existing of-based arches.
:-)
Thanks for the patches. I'm traveling at the moment, but I'll dig
into them when I get back to Calgary.
g.
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: Using devices trees on X86
2010-06-28 17:57 Using devices trees on X86 Stephen Neuendorffer
[not found] ` <0bcc23b9-2cbd-4465-b17c-7b3c2dff9fd3-+Ck8Kgl/v09CYczPSvLbDrjjLBE8jN/0@public.gmane.org>
@ 2010-06-29 2:38 ` Stephen Rothwell
1 sibling, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:38 UTC (permalink / raw)
To: Stephen Neuendorffer
Cc: Michal Simek, microblaze-uclinux, devicetree-discuss,
Paul Mackerras, sparclinux, linuxppc-dev, David Miller
[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]
Hi Stephen,
On Mon, 28 Jun 2010 10:57:33 -0700 Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> wrote:
>
> 2) config OF is currently implemented in the architecture code. This
> should be non-architecture dependent and selected by the arches that
> need it.
>
> Comments greatly appreciated, in particular if you have
> likely-to-be-easy-to-get-accepted suggestions for 3), or feel like
> carefully solving 2) in
> a way which doesn't bork the existing of-based arches.
See the following patch set. Parts 1, 2 and 3 could be applied to the
respective architecture trees as well as Grant's tree to aleviate some
conflict problems. Part 5 could wait until a later time if necessary.
However, this is relatively trivial, so we could just collect ACKs and
put it all in Grant's tree and live with any minor pain.
Having OF in more than one Kconfig file should not cause any problems as
long as they are all the same.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: Using devices trees on X86
@ 2010-06-29 2:38 ` Stephen Rothwell
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:38 UTC (permalink / raw)
To: Stephen Neuendorffer
Cc: Grant Likely, devicetree-discuss, David Miller, sparclinux,
Michal Simek, microblaze-uclinux, Benjamin Herrenschmidt,
Paul Mackerras, linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]
Hi Stephen,
On Mon, 28 Jun 2010 10:57:33 -0700 Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> wrote:
>
> 2) config OF is currently implemented in the architecture code. This
> should be non-architecture dependent and selected by the arches that
> need it.
>
> Comments greatly appreciated, in particular if you have
> likely-to-be-easy-to-get-accepted suggestions for 3), or feel like
> carefully solving 2) in
> a way which doesn't bork the existing of-based arches.
See the following patch set. Parts 1, 2 and 3 could be applied to the
respective architecture trees as well as Grant's tree to aleviate some
conflict problems. Part 5 could wait until a later time if necessary.
However, this is relatively trivial, so we could just collect ACKs and
put it all in Grant's tree and live with any minor pain.
Having OF in more than one Kconfig file should not cause any problems as
long as they are all the same.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: Using devices trees on X86
@ 2010-06-29 2:38 ` Stephen Rothwell
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:38 UTC (permalink / raw)
To: Stephen Neuendorffer
Cc: Grant Likely, devicetree-discuss, David Miller, sparclinux,
Michal Simek, microblaze-uclinux, Benjamin Herrenschmidt,
Paul Mackerras, linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]
Hi Stephen,
On Mon, 28 Jun 2010 10:57:33 -0700 Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> wrote:
>
> 2) config OF is currently implemented in the architecture code. This
> should be non-architecture dependent and selected by the arches that
> need it.
>
> Comments greatly appreciated, in particular if you have
> likely-to-be-easy-to-get-accepted suggestions for 3), or feel like
> carefully solving 2) in
> a way which doesn't bork the existing of-based arches.
See the following patch set. Parts 1, 2 and 3 could be applied to the
respective architecture trees as well as Grant's tree to aleviate some
conflict problems. Part 5 could wait until a later time if necessary.
However, this is relatively trivial, so we could just collect ACKs and
put it all in Grant's tree and live with any minor pain.
Having OF in more than one Kconfig file should not cause any problems as
long as they are all the same.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 38+ messages in thread
* [PATCH 1/5] microblaze: turn CONFIG_OF into a select
2010-06-29 2:38 ` Stephen Rothwell
(?)
@ 2010-06-29 2:42 ` Stephen Rothwell
-1 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:42 UTC (permalink / raw)
To: Michal Simek, microblaze-uclinux
Cc: David Miller, Paul Mackerras, sparclinux, linuxppc-dev,
devicetree-discuss
so that we can make CONFIG_OF global and remove it from
the architecture Kconfig files later.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/microblaze/Kconfig | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
index 76818f9..2b37820 100644
--- a/arch/microblaze/Kconfig
+++ b/arch/microblaze/Kconfig
@@ -17,6 +17,8 @@ config MICROBLAZE
select HAVE_DMA_ATTRS
select HAVE_DMA_API_DEBUG
select TRACING_SUPPORT
+ select OF
+ select OF_FLATTREE
config SWAP
def_bool n
@@ -125,8 +127,7 @@ config CMDLINE_FORCE
override those passed by the boot loader.
config OF
- def_bool y
- select OF_FLATTREE
+ bool
config PROC_DEVICETREE
bool "Support for device tree in /proc"
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 1/5] microblaze: turn CONFIG_OF into a select
@ 2010-06-29 2:42 ` Stephen Rothwell
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:42 UTC (permalink / raw)
To: Michal Simek, microblaze-uclinux
Cc: Stephen Neuendorffer, Grant Likely, devicetree-discuss,
David Miller, sparclinux, Benjamin Herrenschmidt, Paul Mackerras,
linuxppc-dev
so that we can make CONFIG_OF global and remove it from
the architecture Kconfig files later.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/microblaze/Kconfig | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
index 76818f9..2b37820 100644
--- a/arch/microblaze/Kconfig
+++ b/arch/microblaze/Kconfig
@@ -17,6 +17,8 @@ config MICROBLAZE
select HAVE_DMA_ATTRS
select HAVE_DMA_API_DEBUG
select TRACING_SUPPORT
+ select OF
+ select OF_FLATTREE
config SWAP
def_bool n
@@ -125,8 +127,7 @@ config CMDLINE_FORCE
override those passed by the boot loader.
config OF
- def_bool y
- select OF_FLATTREE
+ bool
config PROC_DEVICETREE
bool "Support for device tree in /proc"
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 1/5] microblaze: turn CONFIG_OF into a select
@ 2010-06-29 2:42 ` Stephen Rothwell
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:42 UTC (permalink / raw)
To: Michal Simek, microblaze-uclinux
Cc: Stephen Neuendorffer, Grant Likely, devicetree-discuss,
David Miller, sparclinux, Benjamin Herrenschmidt, Paul Mackerras,
linuxppc-dev
so that we can make CONFIG_OF global and remove it from
the architecture Kconfig files later.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/microblaze/Kconfig | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
index 76818f9..2b37820 100644
--- a/arch/microblaze/Kconfig
+++ b/arch/microblaze/Kconfig
@@ -17,6 +17,8 @@ config MICROBLAZE
select HAVE_DMA_ATTRS
select HAVE_DMA_API_DEBUG
select TRACING_SUPPORT
+ select OF
+ select OF_FLATTREE
config SWAP
def_bool n
@@ -125,8 +127,7 @@ config CMDLINE_FORCE
override those passed by the boot loader.
config OF
- def_bool y
- select OF_FLATTREE
+ bool
config PROC_DEVICETREE
bool "Support for device tree in /proc"
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 2/5] powerpc: turn CONFIG_OF into a select
2010-06-29 2:38 ` Stephen Rothwell
(?)
@ 2010-06-29 2:43 ` Stephen Rothwell
-1 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:43 UTC (permalink / raw)
To: Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
Cc: Michal Simek, microblaze-uclinux, David Miller, sparclinux,
devicetree-discuss
so that we can make CONFIG_OF global and remove it from
the architecture Kconfig files later.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/powerpc/Kconfig | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 328774b..3697231 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -120,6 +120,8 @@ config ARCH_NO_VIRT_TO_BUS
config PPC
bool
default y
+ select OF
+ select OF_FLATTREE
select HAVE_FTRACE_MCOUNT_RECORD
select HAVE_DYNAMIC_FTRACE
select HAVE_FUNCTION_TRACER
@@ -173,8 +175,7 @@ config PPC_OF
def_bool y
config OF
- def_bool y
- select OF_FLATTREE
+ bool
config PPC_UDBG_16550
bool
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 2/5] powerpc: turn CONFIG_OF into a select
@ 2010-06-29 2:43 ` Stephen Rothwell
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:43 UTC (permalink / raw)
To: Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
Cc: Stephen Neuendorffer, Grant Likely, devicetree-discuss,
David Miller, sparclinux, Michal Simek, microblaze-uclinux
so that we can make CONFIG_OF global and remove it from
the architecture Kconfig files later.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/powerpc/Kconfig | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 328774b..3697231 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -120,6 +120,8 @@ config ARCH_NO_VIRT_TO_BUS
config PPC
bool
default y
+ select OF
+ select OF_FLATTREE
select HAVE_FTRACE_MCOUNT_RECORD
select HAVE_DYNAMIC_FTRACE
select HAVE_FUNCTION_TRACER
@@ -173,8 +175,7 @@ config PPC_OF
def_bool y
config OF
- def_bool y
- select OF_FLATTREE
+ bool
config PPC_UDBG_16550
bool
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 2/5] powerpc: turn CONFIG_OF into a select
@ 2010-06-29 2:43 ` Stephen Rothwell
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:43 UTC (permalink / raw)
To: Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
Cc: Stephen Neuendorffer, Grant Likely, devicetree-discuss,
David Miller, sparclinux, Michal Simek, microblaze-uclinux
so that we can make CONFIG_OF global and remove it from
the architecture Kconfig files later.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/powerpc/Kconfig | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 328774b..3697231 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -120,6 +120,8 @@ config ARCH_NO_VIRT_TO_BUS
config PPC
bool
default y
+ select OF
+ select OF_FLATTREE
select HAVE_FTRACE_MCOUNT_RECORD
select HAVE_DYNAMIC_FTRACE
select HAVE_FUNCTION_TRACER
@@ -173,8 +175,7 @@ config PPC_OF
def_bool y
config OF
- def_bool y
- select OF_FLATTREE
+ bool
config PPC_UDBG_16550
bool
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 3/5] sparc: turn CONFIG_OF into a select
2010-06-29 2:38 ` Stephen Rothwell
(?)
@ 2010-06-29 2:44 ` Stephen Rothwell
-1 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:44 UTC (permalink / raw)
To: David Miller, sparclinux
Cc: Michal Simek, Paul Mackerras, microblaze-uclinux, linuxppc-dev,
devicetree-discuss
so that we can make CONFIG_OF global and remove it from
the architecture Kconfig files later.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/sparc/Kconfig | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index 6f1470b..d02e8ac 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -18,6 +18,7 @@ config 64BIT
config SPARC
bool
default y
+ select OF
select HAVE_IDE
select HAVE_OPROFILE
select HAVE_ARCH_KGDB if !SMP || SPARC64
@@ -149,7 +150,7 @@ config ARCH_NO_VIRT_TO_BUS
def_bool y
config OF
- def_bool y
+ bool
config ARCH_SUPPORTS_DEBUG_PAGEALLOC
def_bool y if SPARC64
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 3/5] sparc: turn CONFIG_OF into a select
@ 2010-06-29 2:44 ` Stephen Rothwell
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:44 UTC (permalink / raw)
To: David Miller, sparclinux
Cc: Stephen Neuendorffer, Grant Likely, devicetree-discuss,
Michal Simek, microblaze-uclinux, Benjamin Herrenschmidt,
Paul Mackerras, linuxppc-dev
so that we can make CONFIG_OF global and remove it from
the architecture Kconfig files later.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/sparc/Kconfig | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index 6f1470b..d02e8ac 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -18,6 +18,7 @@ config 64BIT
config SPARC
bool
default y
+ select OF
select HAVE_IDE
select HAVE_OPROFILE
select HAVE_ARCH_KGDB if !SMP || SPARC64
@@ -149,7 +150,7 @@ config ARCH_NO_VIRT_TO_BUS
def_bool y
config OF
- def_bool y
+ bool
config ARCH_SUPPORTS_DEBUG_PAGEALLOC
def_bool y if SPARC64
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 3/5] sparc: turn CONFIG_OF into a select
@ 2010-06-29 2:44 ` Stephen Rothwell
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:44 UTC (permalink / raw)
To: David Miller, sparclinux
Cc: Stephen Neuendorffer, Grant Likely, devicetree-discuss,
Michal Simek, microblaze-uclinux, Benjamin Herrenschmidt,
Paul Mackerras, linuxppc-dev
so that we can make CONFIG_OF global and remove it from
the architecture Kconfig files later.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/sparc/Kconfig | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index 6f1470b..d02e8ac 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -18,6 +18,7 @@ config 64BIT
config SPARC
bool
default y
+ select OF
select HAVE_IDE
select HAVE_OPROFILE
select HAVE_ARCH_KGDB if !SMP || SPARC64
@@ -149,7 +150,7 @@ config ARCH_NO_VIRT_TO_BUS
def_bool y
config OF
- def_bool y
+ bool
config ARCH_SUPPORTS_DEBUG_PAGEALLOC
def_bool y if SPARC64
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 4/5] of: define CONFIG_OF globally so architectures can select it
2010-06-29 2:38 ` Stephen Rothwell
(?)
@ 2010-06-29 2:45 ` Stephen Rothwell
-1 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:45 UTC (permalink / raw)
To: Grant Likely
Cc: Michal Simek, microblaze-uclinux, David Miller, Paul Mackerras,
sparclinux, linuxppc-dev, devicetree-discuss
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/of/Kconfig | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index 7cecc8f..1678dbc 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -1,3 +1,6 @@
+config OF
+ bool
+
config OF_FLATTREE
bool
depends on OF
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 4/5] of: define CONFIG_OF globally so architectures can
@ 2010-06-29 2:45 ` Stephen Rothwell
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:45 UTC (permalink / raw)
To: Grant Likely
Cc: Stephen Neuendorffer, devicetree-discuss, David Miller,
sparclinux, Michal Simek, microblaze-uclinux,
Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/of/Kconfig | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index 7cecc8f..1678dbc 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -1,3 +1,6 @@
+config OF
+ bool
+
config OF_FLATTREE
bool
depends on OF
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 4/5] of: define CONFIG_OF globally so architectures can select it
@ 2010-06-29 2:45 ` Stephen Rothwell
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:45 UTC (permalink / raw)
To: Grant Likely
Cc: Stephen Neuendorffer, devicetree-discuss, David Miller,
sparclinux, Michal Simek, microblaze-uclinux,
Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/of/Kconfig | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index 7cecc8f..1678dbc 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -1,3 +1,6 @@
+config OF
+ bool
+
config OF_FLATTREE
bool
depends on OF
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 5/5] of: remove architecture CONFIG_OF definitions
2010-06-29 2:38 ` Stephen Rothwell
(?)
@ 2010-06-29 2:47 ` Stephen Rothwell
-1 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:47 UTC (permalink / raw)
To: Grant Likely
Cc: Michal Simek, microblaze-uclinux, David Miller, Paul Mackerras,
sparclinux, linuxppc-dev, devicetree-discuss
now that CONFIG_OF is defined globally
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/microblaze/Kconfig | 3 ---
arch/powerpc/Kconfig | 3 ---
arch/sparc/Kconfig | 3 ---
3 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
index 2b37820..1a8f682 100644
--- a/arch/microblaze/Kconfig
+++ b/arch/microblaze/Kconfig
@@ -126,9 +126,6 @@ config CMDLINE_FORCE
Set this to have arguments from the default kernel command string
override those passed by the boot loader.
-config OF
- bool
-
config PROC_DEVICETREE
bool "Support for device tree in /proc"
depends on PROC_FS
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 3697231..402f4c0 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -174,9 +174,6 @@ config ARCH_MAY_HAVE_PC_FDC
config PPC_OF
def_bool y
-config OF
- bool
-
config PPC_UDBG_16550
bool
default n
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index d02e8ac..13a9f2f 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -149,9 +149,6 @@ config GENERIC_GPIO
config ARCH_NO_VIRT_TO_BUS
def_bool y
-config OF
- bool
-
config ARCH_SUPPORTS_DEBUG_PAGEALLOC
def_bool y if SPARC64
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 5/5] of: remove architecture CONFIG_OF definitions
@ 2010-06-29 2:47 ` Stephen Rothwell
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:47 UTC (permalink / raw)
To: Grant Likely
Cc: Stephen Neuendorffer, devicetree-discuss, David Miller,
sparclinux, Michal Simek, microblaze-uclinux,
Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
now that CONFIG_OF is defined globally
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/microblaze/Kconfig | 3 ---
arch/powerpc/Kconfig | 3 ---
arch/sparc/Kconfig | 3 ---
3 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
index 2b37820..1a8f682 100644
--- a/arch/microblaze/Kconfig
+++ b/arch/microblaze/Kconfig
@@ -126,9 +126,6 @@ config CMDLINE_FORCE
Set this to have arguments from the default kernel command string
override those passed by the boot loader.
-config OF
- bool
-
config PROC_DEVICETREE
bool "Support for device tree in /proc"
depends on PROC_FS
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 3697231..402f4c0 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -174,9 +174,6 @@ config ARCH_MAY_HAVE_PC_FDC
config PPC_OF
def_bool y
-config OF
- bool
-
config PPC_UDBG_16550
bool
default n
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index d02e8ac..13a9f2f 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -149,9 +149,6 @@ config GENERIC_GPIO
config ARCH_NO_VIRT_TO_BUS
def_bool y
-config OF
- bool
-
config ARCH_SUPPORTS_DEBUG_PAGEALLOC
def_bool y if SPARC64
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 5/5] of: remove architecture CONFIG_OF definitions
@ 2010-06-29 2:47 ` Stephen Rothwell
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 2:47 UTC (permalink / raw)
To: Grant Likely
Cc: Stephen Neuendorffer, devicetree-discuss, David Miller,
sparclinux, Michal Simek, microblaze-uclinux,
Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
now that CONFIG_OF is defined globally
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/microblaze/Kconfig | 3 ---
arch/powerpc/Kconfig | 3 ---
arch/sparc/Kconfig | 3 ---
3 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
index 2b37820..1a8f682 100644
--- a/arch/microblaze/Kconfig
+++ b/arch/microblaze/Kconfig
@@ -126,9 +126,6 @@ config CMDLINE_FORCE
Set this to have arguments from the default kernel command string
override those passed by the boot loader.
-config OF
- bool
-
config PROC_DEVICETREE
bool "Support for device tree in /proc"
depends on PROC_FS
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 3697231..402f4c0 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -174,9 +174,6 @@ config ARCH_MAY_HAVE_PC_FDC
config PPC_OF
def_bool y
-config OF
- bool
-
config PPC_UDBG_16550
bool
default n
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index d02e8ac..13a9f2f 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -149,9 +149,6 @@ config GENERIC_GPIO
config ARCH_NO_VIRT_TO_BUS
def_bool y
-config OF
- bool
-
config ARCH_SUPPORTS_DEBUG_PAGEALLOC
def_bool y if SPARC64
--
1.7.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 38+ messages in thread
* Re: [PATCH 3/5] sparc: turn CONFIG_OF into a select
@ 2010-06-29 3:11 ` David Miller
0 siblings, 0 replies; 38+ messages in thread
From: David Miller @ 2010-06-29 3:11 UTC (permalink / raw)
To: sfr
Cc: monstr, microblaze-uclinux, paulus, sparclinux, linuxppc-dev,
devicetree-discuss
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Tue, 29 Jun 2010 12:44:50 +1000
> so that we can make CONFIG_OF global and remove it from
> the architecture Kconfig files later.
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 3/5] sparc: turn CONFIG_OF into a select
@ 2010-06-29 3:11 ` David Miller
0 siblings, 0 replies; 38+ messages in thread
From: David Miller @ 2010-06-29 3:11 UTC (permalink / raw)
To: sfr-3FnU+UHB4dNDw9hX6IcOSA
Cc: microblaze-uclinux-rVRm/Wmeqae7NGdpmJTKYQ,
sparclinux-u79uwXL29TY76Z2rM5mHXA,
linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Tue, 29 Jun 2010 12:44:50 +1000
> so that we can make CONFIG_OF global and remove it from
> the architecture Kconfig files later.
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 3/5] sparc: turn CONFIG_OF into a select
@ 2010-06-29 3:11 ` David Miller
0 siblings, 0 replies; 38+ messages in thread
From: David Miller @ 2010-06-29 3:11 UTC (permalink / raw)
To: sfr-3FnU+UHB4dNDw9hX6IcOSA
Cc: microblaze-uclinux-rVRm/Wmeqae7NGdpmJTKYQ,
sparclinux-u79uwXL29TY76Z2rM5mHXA,
linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
From: Stephen Rothwell <sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
Date: Tue, 29 Jun 2010 12:44:50 +1000
> so that we can make CONFIG_OF global and remove it from
> the architecture Kconfig files later.
>
> Signed-off-by: Stephen Rothwell <sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
Acked-by: David S. Miller <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: Using devices trees on X86
2010-06-29 2:38 ` Stephen Rothwell
(?)
@ 2010-06-29 5:56 ` Grant Likely
-1 siblings, 0 replies; 38+ messages in thread
From: Grant Likely @ 2010-06-29 5:56 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Michal Simek, microblaze-uclinux, David Miller, Paul Mackerras,
sparclinux, linuxppc-dev, devicetree-discuss
On Mon, Jun 28, 2010 at 7:38 PM, Stephen Rothwell <sfr@canb.auug.org.au> wr=
ote:
> Hi Stephen,
>
> On Mon, 28 Jun 2010 10:57:33 -0700 Stephen Neuendorffer <stephen.neuendor=
ffer@xilinx.com> wrote:
>>
>> 2) config OF is currently implemented in the architecture code. =A0This
>> should be non-architecture dependent and selected by the arches that
>> need it.
>>
>> Comments greatly appreciated, in particular if you have
>> likely-to-be-easy-to-get-accepted suggestions for 3), or feel like
>> carefully solving 2) in
>> a way which doesn't bork the existing of-based arches.
>
> See the following patch set. =A0Parts 1, 2 and 3 could be applied to the
> respective architecture trees as well as Grant's tree to aleviate some
> conflict problems. =A0Part 5 could wait until a later time if necessary.
> However, this is relatively trivial, so we could just collect ACKs and
> put it all in Grant's tree and live with any minor pain.
>
> Having OF in more than one Kconfig file should not cause any problems as
> long as they are all the same.
I've got an Ack from David now. I'll wait for more acks, and then
pull the whole series of 5 into my devicetree-next branch. It's
certainly less invasive that some of the other changes arch changes
I've taken through my tree.
g.
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: Using devices trees on X86
@ 2010-06-29 5:56 ` Grant Likely
0 siblings, 0 replies; 38+ messages in thread
From: Grant Likely @ 2010-06-29 5:56 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Stephen Neuendorffer, devicetree-discuss, David Miller,
sparclinux, Michal Simek, microblaze-uclinux,
Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
On Mon, Jun 28, 2010 at 7:38 PM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Stephen,
>
> On Mon, 28 Jun 2010 10:57:33 -0700 Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> wrote:
>>
>> 2) config OF is currently implemented in the architecture code. This
>> should be non-architecture dependent and selected by the arches that
>> need it.
>>
>> Comments greatly appreciated, in particular if you have
>> likely-to-be-easy-to-get-accepted suggestions for 3), or feel like
>> carefully solving 2) in
>> a way which doesn't bork the existing of-based arches.
>
> See the following patch set. Parts 1, 2 and 3 could be applied to the
> respective architecture trees as well as Grant's tree to aleviate some
> conflict problems. Part 5 could wait until a later time if necessary.
> However, this is relatively trivial, so we could just collect ACKs and
> put it all in Grant's tree and live with any minor pain.
>
> Having OF in more than one Kconfig file should not cause any problems as
> long as they are all the same.
I've got an Ack from David now. I'll wait for more acks, and then
pull the whole series of 5 into my devicetree-next branch. It's
certainly less invasive that some of the other changes arch changes
I've taken through my tree.
g.
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: Using devices trees on X86
@ 2010-06-29 5:56 ` Grant Likely
0 siblings, 0 replies; 38+ messages in thread
From: Grant Likely @ 2010-06-29 5:56 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Stephen Neuendorffer, devicetree-discuss, David Miller,
sparclinux, Michal Simek, microblaze-uclinux,
Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
On Mon, Jun 28, 2010 at 7:38 PM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Stephen,
>
> On Mon, 28 Jun 2010 10:57:33 -0700 Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> wrote:
>>
>> 2) config OF is currently implemented in the architecture code. This
>> should be non-architecture dependent and selected by the arches that
>> need it.
>>
>> Comments greatly appreciated, in particular if you have
>> likely-to-be-easy-to-get-accepted suggestions for 3), or feel like
>> carefully solving 2) in
>> a way which doesn't bork the existing of-based arches.
>
> See the following patch set. Parts 1, 2 and 3 could be applied to the
> respective architecture trees as well as Grant's tree to aleviate some
> conflict problems. Part 5 could wait until a later time if necessary.
> However, this is relatively trivial, so we could just collect ACKs and
> put it all in Grant's tree and live with any minor pain.
>
> Having OF in more than one Kconfig file should not cause any problems as
> long as they are all the same.
I've got an Ack from David now. I'll wait for more acks, and then
pull the whole series of 5 into my devicetree-next branch. It's
certainly less invasive that some of the other changes arch changes
I've taken through my tree.
g.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: Using devices trees on X86
2010-06-29 5:56 ` Grant Likely
(?)
@ 2010-06-29 6:02 ` Stephen Rothwell
-1 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 6:02 UTC (permalink / raw)
To: Grant Likely
Cc: Michal Simek, microblaze-uclinux, David Miller, Paul Mackerras,
sparclinux, linuxppc-dev, devicetree-discuss
[-- Attachment #1: Type: text/plain, Size: 697 bytes --]
Hi Grant,
On Mon, 28 Jun 2010 22:56:14 -0700 Grant Likely <grant.likely@secretlab.ca> wrote:
>
> I've got an Ack from David now. I'll wait for more acks, and then
> pull the whole series of 5 into my devicetree-next branch. It's
> certainly less invasive that some of the other changes arch changes
> I've taken through my tree.
Yes, certainly. However, I have a plan to write a series of patches for
PowerPC that may clash some what, so if that is the case, I might ask Ben
to take the one patch as well. Especially if the conflict turns up in
linux-next :-)
Thanks.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: Using devices trees on X86
@ 2010-06-29 6:02 ` Stephen Rothwell
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 6:02 UTC (permalink / raw)
To: Grant Likely
Cc: Stephen Neuendorffer, devicetree-discuss, David Miller,
sparclinux, Michal Simek, microblaze-uclinux,
Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 697 bytes --]
Hi Grant,
On Mon, 28 Jun 2010 22:56:14 -0700 Grant Likely <grant.likely@secretlab.ca> wrote:
>
> I've got an Ack from David now. I'll wait for more acks, and then
> pull the whole series of 5 into my devicetree-next branch. It's
> certainly less invasive that some of the other changes arch changes
> I've taken through my tree.
Yes, certainly. However, I have a plan to write a series of patches for
PowerPC that may clash some what, so if that is the case, I might ask Ben
to take the one patch as well. Especially if the conflict turns up in
linux-next :-)
Thanks.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: Using devices trees on X86
@ 2010-06-29 6:02 ` Stephen Rothwell
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Rothwell @ 2010-06-29 6:02 UTC (permalink / raw)
To: Grant Likely
Cc: Stephen Neuendorffer, devicetree-discuss, David Miller,
sparclinux, Michal Simek, microblaze-uclinux,
Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 697 bytes --]
Hi Grant,
On Mon, 28 Jun 2010 22:56:14 -0700 Grant Likely <grant.likely@secretlab.ca> wrote:
>
> I've got an Ack from David now. I'll wait for more acks, and then
> pull the whole series of 5 into my devicetree-next branch. It's
> certainly less invasive that some of the other changes arch changes
> I've taken through my tree.
Yes, certainly. However, I have a plan to write a series of patches for
PowerPC that may clash some what, so if that is the case, I might ask Ben
to take the one patch as well. Especially if the conflict turns up in
linux-next :-)
Thanks.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 1/5] microblaze: turn CONFIG_OF into a select
@ 2010-06-29 9:57 ` Michal Simek
0 siblings, 0 replies; 38+ messages in thread
From: Michal Simek @ 2010-06-29 9:57 UTC (permalink / raw)
To: Stephen Rothwell
Cc: microblaze-uclinux, David Miller, Paul Mackerras, sparclinux,
linuxppc-dev, devicetree-discuss
Stephen Rothwell wrote:
> so that we can make CONFIG_OF global and remove it from
> the architecture Kconfig files later.
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Michal Simek <monstr@monstr.eu>
> ---
> arch/microblaze/Kconfig | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
> index 76818f9..2b37820 100644
> --- a/arch/microblaze/Kconfig
> +++ b/arch/microblaze/Kconfig
> @@ -17,6 +17,8 @@ config MICROBLAZE
> select HAVE_DMA_ATTRS
> select HAVE_DMA_API_DEBUG
> select TRACING_SUPPORT
> + select OF
> + select OF_FLATTREE
>
> config SWAP
> def_bool n
> @@ -125,8 +127,7 @@ config CMDLINE_FORCE
> override those passed by the boot loader.
>
> config OF
> - def_bool y
> - select OF_FLATTREE
> + bool
>
> config PROC_DEVICETREE
> bool "Support for device tree in /proc"
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 1/5] microblaze: turn CONFIG_OF into a select
@ 2010-06-29 9:57 ` Michal Simek
0 siblings, 0 replies; 38+ messages in thread
From: Michal Simek @ 2010-06-29 9:57 UTC (permalink / raw)
To: Stephen Rothwell
Cc: microblaze-uclinux-rVRm/Wmeqae7NGdpmJTKYQ, David Miller,
sparclinux-u79uwXL29TY76Z2rM5mHXA,
linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
Stephen Rothwell wrote:
> so that we can make CONFIG_OF global and remove it from
> the architecture Kconfig files later.
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Michal Simek <monstr@monstr.eu>
> ---
> arch/microblaze/Kconfig | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
> index 76818f9..2b37820 100644
> --- a/arch/microblaze/Kconfig
> +++ b/arch/microblaze/Kconfig
> @@ -17,6 +17,8 @@ config MICROBLAZE
> select HAVE_DMA_ATTRS
> select HAVE_DMA_API_DEBUG
> select TRACING_SUPPORT
> + select OF
> + select OF_FLATTREE
>
> config SWAP
> def_bool n
> @@ -125,8 +127,7 @@ config CMDLINE_FORCE
> override those passed by the boot loader.
>
> config OF
> - def_bool y
> - select OF_FLATTREE
> + bool
>
> config PROC_DEVICETREE
> bool "Support for device tree in /proc"
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 1/5] microblaze: turn CONFIG_OF into a select
@ 2010-06-29 9:57 ` Michal Simek
0 siblings, 0 replies; 38+ messages in thread
From: Michal Simek @ 2010-06-29 9:57 UTC (permalink / raw)
To: Stephen Rothwell
Cc: microblaze-uclinux-rVRm/Wmeqae7NGdpmJTKYQ, David Miller,
sparclinux-u79uwXL29TY76Z2rM5mHXA,
linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
Stephen Rothwell wrote:
> so that we can make CONFIG_OF global and remove it from
> the architecture Kconfig files later.
>
> Signed-off-by: Stephen Rothwell <sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
Acked-by: Michal Simek <monstr-pSz03upnqPeHXe+LvDLADg@public.gmane.org>
> ---
> arch/microblaze/Kconfig | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
> index 76818f9..2b37820 100644
> --- a/arch/microblaze/Kconfig
> +++ b/arch/microblaze/Kconfig
> @@ -17,6 +17,8 @@ config MICROBLAZE
> select HAVE_DMA_ATTRS
> select HAVE_DMA_API_DEBUG
> select TRACING_SUPPORT
> + select OF
> + select OF_FLATTREE
>
> config SWAP
> def_bool n
> @@ -125,8 +127,7 @@ config CMDLINE_FORCE
> override those passed by the boot loader.
>
> config OF
> - def_bool y
> - select OF_FLATTREE
> + bool
>
> config PROC_DEVICETREE
> bool "Support for device tree in /proc"
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 5/5] of: remove architecture CONFIG_OF definitions
2010-06-29 2:47 ` Stephen Rothwell
(?)
@ 2010-06-29 9:58 ` Michal Simek
-1 siblings, 0 replies; 38+ messages in thread
From: Michal Simek @ 2010-06-29 9:58 UTC (permalink / raw)
To: Stephen Rothwell
Cc: microblaze-uclinux, David Miller, Paul Mackerras, sparclinux,
linuxppc-dev, devicetree-discuss
Stephen Rothwell wrote:
> now that CONFIG_OF is defined globally
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Michal Simek <monstr@monstr.eu>
> ---
> arch/microblaze/Kconfig | 3 ---
> arch/powerpc/Kconfig | 3 ---
> arch/sparc/Kconfig | 3 ---
> 3 files changed, 0 insertions(+), 9 deletions(-)
>
> diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
> index 2b37820..1a8f682 100644
> --- a/arch/microblaze/Kconfig
> +++ b/arch/microblaze/Kconfig
> @@ -126,9 +126,6 @@ config CMDLINE_FORCE
> Set this to have arguments from the default kernel command string
> override those passed by the boot loader.
>
> -config OF
> - bool
> -
> config PROC_DEVICETREE
> bool "Support for device tree in /proc"
> depends on PROC_FS
> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
> index 3697231..402f4c0 100644
> --- a/arch/powerpc/Kconfig
> +++ b/arch/powerpc/Kconfig
> @@ -174,9 +174,6 @@ config ARCH_MAY_HAVE_PC_FDC
> config PPC_OF
> def_bool y
>
> -config OF
> - bool
> -
> config PPC_UDBG_16550
> bool
> default n
> diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
> index d02e8ac..13a9f2f 100644
> --- a/arch/sparc/Kconfig
> +++ b/arch/sparc/Kconfig
> @@ -149,9 +149,6 @@ config GENERIC_GPIO
> config ARCH_NO_VIRT_TO_BUS
> def_bool y
>
> -config OF
> - bool
> -
> config ARCH_SUPPORTS_DEBUG_PAGEALLOC
> def_bool y if SPARC64
>
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 5/5] of: remove architecture CONFIG_OF definitions
@ 2010-06-29 9:58 ` Michal Simek
0 siblings, 0 replies; 38+ messages in thread
From: Michal Simek @ 2010-06-29 9:58 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Grant Likely, Stephen Neuendorffer, devicetree-discuss,
David Miller, sparclinux, microblaze-uclinux,
Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
Stephen Rothwell wrote:
> now that CONFIG_OF is defined globally
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Michal Simek <monstr@monstr.eu>
> ---
> arch/microblaze/Kconfig | 3 ---
> arch/powerpc/Kconfig | 3 ---
> arch/sparc/Kconfig | 3 ---
> 3 files changed, 0 insertions(+), 9 deletions(-)
>
> diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
> index 2b37820..1a8f682 100644
> --- a/arch/microblaze/Kconfig
> +++ b/arch/microblaze/Kconfig
> @@ -126,9 +126,6 @@ config CMDLINE_FORCE
> Set this to have arguments from the default kernel command string
> override those passed by the boot loader.
>
> -config OF
> - bool
> -
> config PROC_DEVICETREE
> bool "Support for device tree in /proc"
> depends on PROC_FS
> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
> index 3697231..402f4c0 100644
> --- a/arch/powerpc/Kconfig
> +++ b/arch/powerpc/Kconfig
> @@ -174,9 +174,6 @@ config ARCH_MAY_HAVE_PC_FDC
> config PPC_OF
> def_bool y
>
> -config OF
> - bool
> -
> config PPC_UDBG_16550
> bool
> default n
> diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
> index d02e8ac..13a9f2f 100644
> --- a/arch/sparc/Kconfig
> +++ b/arch/sparc/Kconfig
> @@ -149,9 +149,6 @@ config GENERIC_GPIO
> config ARCH_NO_VIRT_TO_BUS
> def_bool y
>
> -config OF
> - bool
> -
> config ARCH_SUPPORTS_DEBUG_PAGEALLOC
> def_bool y if SPARC64
>
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 5/5] of: remove architecture CONFIG_OF definitions
@ 2010-06-29 9:58 ` Michal Simek
0 siblings, 0 replies; 38+ messages in thread
From: Michal Simek @ 2010-06-29 9:58 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Grant Likely, Stephen Neuendorffer, devicetree-discuss,
David Miller, sparclinux, microblaze-uclinux,
Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
Stephen Rothwell wrote:
> now that CONFIG_OF is defined globally
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Michal Simek <monstr@monstr.eu>
> ---
> arch/microblaze/Kconfig | 3 ---
> arch/powerpc/Kconfig | 3 ---
> arch/sparc/Kconfig | 3 ---
> 3 files changed, 0 insertions(+), 9 deletions(-)
>
> diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
> index 2b37820..1a8f682 100644
> --- a/arch/microblaze/Kconfig
> +++ b/arch/microblaze/Kconfig
> @@ -126,9 +126,6 @@ config CMDLINE_FORCE
> Set this to have arguments from the default kernel command string
> override those passed by the boot loader.
>
> -config OF
> - bool
> -
> config PROC_DEVICETREE
> bool "Support for device tree in /proc"
> depends on PROC_FS
> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
> index 3697231..402f4c0 100644
> --- a/arch/powerpc/Kconfig
> +++ b/arch/powerpc/Kconfig
> @@ -174,9 +174,6 @@ config ARCH_MAY_HAVE_PC_FDC
> config PPC_OF
> def_bool y
>
> -config OF
> - bool
> -
> config PPC_UDBG_16550
> bool
> default n
> diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
> index d02e8ac..13a9f2f 100644
> --- a/arch/sparc/Kconfig
> +++ b/arch/sparc/Kconfig
> @@ -149,9 +149,6 @@ config GENERIC_GPIO
> config ARCH_NO_VIRT_TO_BUS
> def_bool y
>
> -config OF
> - bool
> -
> config ARCH_SUPPORTS_DEBUG_PAGEALLOC
> def_bool y if SPARC64
>
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
^ permalink raw reply [flat|nested] 38+ messages in thread
* RE: Using devices trees on X86
@ 2010-06-29 15:56 ` Stephen Neuendorffer
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Neuendorffer @ 2010-06-29 15:56 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Michal Simek, microblaze-uclinux, devicetree-discuss,
Paul Mackerras, sparclinux, linuxppc-dev, David Miller
> -----Original Message-----
> From: Stephen Rothwell [mailto:sfr@canb.auug.org.au]
> Sent: Monday, June 28, 2010 7:39 PM
> To: Stephen Neuendorffer
> Cc: grant.likely@secretlab.ca; devicetree-discuss@lists.ozlabs.org;
David Miller;
> sparclinux@vger.kernel.org; Michal Simek;
microblaze-uclinux@itee.uq.edu.au; Benjamin Herrenschmidt;
> Paul Mackerras; linuxppc-dev@lists.ozlabs.org
> Subject: Re: Using devices trees on X86
> =
> Hi Stephen,
> =
> On Mon, 28 Jun 2010 10:57:33 -0700 Stephen Neuendorffer
<stephen.neuendorffer@xilinx.com> wrote:
> >
> > 2) config OF is currently implemented in the architecture code.
This
> > should be non-architecture dependent and selected by the arches that
> > need it.
> >
> > Comments greatly appreciated, in particular if you have
> > likely-to-be-easy-to-get-accepted suggestions for 3), or feel like
> > carefully solving 2) in
> > a way which doesn't bork the existing of-based arches.
> =
> See the following patch set. Parts 1, 2 and 3 could be applied to the
> respective architecture trees as well as Grant's tree to aleviate some
> conflict problems. Part 5 could wait until a later time if necessary.
> However, this is relatively trivial, so we could just collect ACKs and
> put it all in Grant's tree and live with any minor pain.
> =
> Having OF in more than one Kconfig file should not cause any problems
as
> long as they are all the same.
Ah, well, that simplifies things.. :) Thanks!
Steve
This email and any attachments are intended for the sole use of the named r=
ecipient(s) and contain(s) confidential information that may be proprietary=
, privileged or copyrighted under applicable law. If you are not the intend=
ed recipient, do not read, copy, or forward this email message or any attac=
hments. Delete this email message and any attachments immediately.
^ permalink raw reply [flat|nested] 38+ messages in thread
* RE: Using devices trees on X86
@ 2010-06-29 15:56 ` Stephen Neuendorffer
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Neuendorffer @ 2010-06-29 15:56 UTC (permalink / raw)
To: Stephen Rothwell
Cc: microblaze-uclinux-rVRm/Wmeqae7NGdpmJTKYQ,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
sparclinux-u79uwXL29TY76Z2rM5mHXA,
linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ, David Miller
> -----Original Message-----
> From: Stephen Rothwell [mailto:sfr@canb.auug.org.au]
> Sent: Monday, June 28, 2010 7:39 PM
> To: Stephen Neuendorffer
> Cc: grant.likely@secretlab.ca; devicetree-discuss@lists.ozlabs.org;
David Miller;
> sparclinux@vger.kernel.org; Michal Simek;
microblaze-uclinux@itee.uq.edu.au; Benjamin Herrenschmidt;
> Paul Mackerras; linuxppc-dev@lists.ozlabs.org
> Subject: Re: Using devices trees on X86
>
> Hi Stephen,
>
> On Mon, 28 Jun 2010 10:57:33 -0700 Stephen Neuendorffer
<stephen.neuendorffer@xilinx.com> wrote:
> >
> > 2) config OF is currently implemented in the architecture code.
This
> > should be non-architecture dependent and selected by the arches that
> > need it.
> >
> > Comments greatly appreciated, in particular if you have
> > likely-to-be-easy-to-get-accepted suggestions for 3), or feel like
> > carefully solving 2) in
> > a way which doesn't bork the existing of-based arches.
>
> See the following patch set. Parts 1, 2 and 3 could be applied to the
> respective architecture trees as well as Grant's tree to aleviate some
> conflict problems. Part 5 could wait until a later time if necessary.
> However, this is relatively trivial, so we could just collect ACKs and
> put it all in Grant's tree and live with any minor pain.
>
> Having OF in more than one Kconfig file should not cause any problems
as
> long as they are all the same.
Ah, well, that simplifies things.. :) Thanks!
Steve
This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
^ permalink raw reply [flat|nested] 38+ messages in thread
* RE: Using devices trees on X86
@ 2010-06-29 15:56 ` Stephen Neuendorffer
0 siblings, 0 replies; 38+ messages in thread
From: Stephen Neuendorffer @ 2010-06-29 15:56 UTC (permalink / raw)
To: Stephen Rothwell
Cc: microblaze-uclinux-rVRm/Wmeqae7NGdpmJTKYQ,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
sparclinux-u79uwXL29TY76Z2rM5mHXA,
linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ, David Miller
> -----Original Message-----
> From: Stephen Rothwell [mailto:sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org]
> Sent: Monday, June 28, 2010 7:39 PM
> To: Stephen Neuendorffer
> Cc: grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org; devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org;
David Miller;
> sparclinux-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Michal Simek;
microblaze-uclinux-rVRm/Wmeqae7NGdpmJTKYQ@public.gmane.org; Benjamin Herrenschmidt;
> Paul Mackerras; linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
> Subject: Re: Using devices trees on X86
>
> Hi Stephen,
>
> On Mon, 28 Jun 2010 10:57:33 -0700 Stephen Neuendorffer
<stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org> wrote:
> >
> > 2) config OF is currently implemented in the architecture code.
This
> > should be non-architecture dependent and selected by the arches that
> > need it.
> >
> > Comments greatly appreciated, in particular if you have
> > likely-to-be-easy-to-get-accepted suggestions for 3), or feel like
> > carefully solving 2) in
> > a way which doesn't bork the existing of-based arches.
>
> See the following patch set. Parts 1, 2 and 3 could be applied to the
> respective architecture trees as well as Grant's tree to aleviate some
> conflict problems. Part 5 could wait until a later time if necessary.
> However, this is relatively trivial, so we could just collect ACKs and
> put it all in Grant's tree and live with any minor pain.
>
> Having OF in more than one Kconfig file should not cause any problems
as
> long as they are all the same.
Ah, well, that simplifies things.. :) Thanks!
Steve
This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
^ permalink raw reply [flat|nested] 38+ messages in thread
end of thread, other threads:[~2010-06-29 15:56 UTC | newest]
Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-28 17:57 Using devices trees on X86 Stephen Neuendorffer
[not found] ` <0bcc23b9-2cbd-4465-b17c-7b3c2dff9fd3-+Ck8Kgl/v09CYczPSvLbDrjjLBE8jN/0@public.gmane.org>
2010-06-28 18:08 ` Grant Likely
2010-06-29 2:38 ` Stephen Rothwell
2010-06-29 2:38 ` Stephen Rothwell
2010-06-29 2:38 ` Stephen Rothwell
2010-06-29 2:42 ` [PATCH 1/5] microblaze: turn CONFIG_OF into a select Stephen Rothwell
2010-06-29 2:42 ` Stephen Rothwell
2010-06-29 2:42 ` Stephen Rothwell
2010-06-29 9:57 ` Michal Simek
2010-06-29 9:57 ` Michal Simek
2010-06-29 9:57 ` Michal Simek
2010-06-29 2:43 ` [PATCH 2/5] powerpc: " Stephen Rothwell
2010-06-29 2:43 ` Stephen Rothwell
2010-06-29 2:43 ` Stephen Rothwell
2010-06-29 2:44 ` [PATCH 3/5] sparc: " Stephen Rothwell
2010-06-29 2:44 ` Stephen Rothwell
2010-06-29 2:44 ` Stephen Rothwell
2010-06-29 3:11 ` David Miller
2010-06-29 3:11 ` David Miller
2010-06-29 3:11 ` David Miller
2010-06-29 2:45 ` [PATCH 4/5] of: define CONFIG_OF globally so architectures can select it Stephen Rothwell
2010-06-29 2:45 ` Stephen Rothwell
2010-06-29 2:45 ` [PATCH 4/5] of: define CONFIG_OF globally so architectures can Stephen Rothwell
2010-06-29 2:47 ` [PATCH 5/5] of: remove architecture CONFIG_OF definitions Stephen Rothwell
2010-06-29 2:47 ` Stephen Rothwell
2010-06-29 2:47 ` Stephen Rothwell
2010-06-29 9:58 ` Michal Simek
2010-06-29 9:58 ` Michal Simek
2010-06-29 9:58 ` Michal Simek
2010-06-29 5:56 ` Using devices trees on X86 Grant Likely
2010-06-29 5:56 ` Grant Likely
2010-06-29 5:56 ` Grant Likely
2010-06-29 6:02 ` Stephen Rothwell
2010-06-29 6:02 ` Stephen Rothwell
2010-06-29 6:02 ` Stephen Rothwell
2010-06-29 15:56 ` Stephen Neuendorffer
2010-06-29 15:56 ` Stephen Neuendorffer
2010-06-29 15:56 ` Stephen Neuendorffer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.