* [PATCH 1/5] microblaze: turn CONFIG_OF into a select
2010-06-29 2:38 ` Using devices trees on X86 Stephen Rothwell
@ 2010-06-29 2:42 ` Stephen Rothwell
2010-06-29 9:57 ` Michal Simek
2010-06-29 2:43 ` [PATCH 2/5] powerpc: " Stephen Rothwell
` (5 subsequent siblings)
6 siblings, 1 reply; 12+ 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] 12+ messages in thread
* Re: [PATCH 1/5] microblaze: turn CONFIG_OF into a select
2010-06-29 2:42 ` [PATCH 1/5] microblaze: turn CONFIG_OF into a select Stephen Rothwell
@ 2010-06-29 9:57 ` Michal Simek
0 siblings, 0 replies; 12+ 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] 12+ messages in thread
* [PATCH 2/5] powerpc: turn CONFIG_OF into a select
2010-06-29 2:38 ` Using devices trees on X86 Stephen Rothwell
2010-06-29 2:42 ` [PATCH 1/5] microblaze: turn CONFIG_OF into a select Stephen Rothwell
@ 2010-06-29 2:43 ` Stephen Rothwell
2010-06-29 2:44 ` [PATCH 3/5] sparc: " Stephen Rothwell
` (4 subsequent siblings)
6 siblings, 0 replies; 12+ 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] 12+ messages in thread
* [PATCH 3/5] sparc: turn CONFIG_OF into a select
2010-06-29 2:38 ` Using devices trees on X86 Stephen Rothwell
2010-06-29 2:42 ` [PATCH 1/5] microblaze: turn CONFIG_OF into a select Stephen Rothwell
2010-06-29 2:43 ` [PATCH 2/5] powerpc: " Stephen Rothwell
@ 2010-06-29 2:44 ` Stephen Rothwell
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
` (3 subsequent siblings)
6 siblings, 1 reply; 12+ 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] 12+ messages in thread
* Re: [PATCH 3/5] sparc: turn CONFIG_OF into a select
2010-06-29 2:44 ` [PATCH 3/5] sparc: " Stephen Rothwell
@ 2010-06-29 3:11 ` David Miller
0 siblings, 0 replies; 12+ 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] 12+ messages in thread
* [PATCH 4/5] of: define CONFIG_OF globally so architectures can select it
2010-06-29 2:38 ` Using devices trees on X86 Stephen Rothwell
` (2 preceding siblings ...)
2010-06-29 2:44 ` [PATCH 3/5] sparc: " Stephen Rothwell
@ 2010-06-29 2:45 ` Stephen Rothwell
2010-06-29 2:47 ` [PATCH 5/5] of: remove architecture CONFIG_OF definitions Stephen Rothwell
` (2 subsequent siblings)
6 siblings, 0 replies; 12+ 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] 12+ messages in thread
* [PATCH 5/5] of: remove architecture CONFIG_OF definitions
2010-06-29 2:38 ` Using devices trees on X86 Stephen Rothwell
` (3 preceding siblings ...)
2010-06-29 2:45 ` [PATCH 4/5] of: define CONFIG_OF globally so architectures can select it Stephen Rothwell
@ 2010-06-29 2:47 ` Stephen Rothwell
2010-06-29 9:58 ` Michal Simek
2010-06-29 5:56 ` Using devices trees on X86 Grant Likely
2010-06-29 15:56 ` Stephen Neuendorffer
6 siblings, 1 reply; 12+ 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] 12+ messages in thread
* Re: [PATCH 5/5] of: remove architecture CONFIG_OF definitions
2010-06-29 2:47 ` [PATCH 5/5] of: remove architecture CONFIG_OF definitions Stephen Rothwell
@ 2010-06-29 9:58 ` Michal Simek
0 siblings, 0 replies; 12+ 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] 12+ messages in thread
* Re: Using devices trees on X86
2010-06-29 2:38 ` Using devices trees on X86 Stephen Rothwell
` (4 preceding siblings ...)
2010-06-29 2:47 ` [PATCH 5/5] of: remove architecture CONFIG_OF definitions Stephen Rothwell
@ 2010-06-29 5:56 ` Grant Likely
2010-06-29 6:02 ` Stephen Rothwell
2010-06-29 15:56 ` Stephen Neuendorffer
6 siblings, 1 reply; 12+ 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] 12+ messages in thread
* Re: Using devices trees on X86
2010-06-29 5:56 ` Using devices trees on X86 Grant Likely
@ 2010-06-29 6:02 ` Stephen Rothwell
0 siblings, 0 replies; 12+ 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] 12+ messages in thread
* RE: Using devices trees on X86
2010-06-29 2:38 ` Using devices trees on X86 Stephen Rothwell
` (5 preceding siblings ...)
2010-06-29 5:56 ` Using devices trees on X86 Grant Likely
@ 2010-06-29 15:56 ` Stephen Neuendorffer
6 siblings, 0 replies; 12+ 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] 12+ messages in thread