All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andres Salomon <dilinger@queued.net>
To: tglx@linutronix.de
Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, hpa@zytor.com,
	linux-tip-commits@vger.kernel.org
Subject: Re: [tip:x86/platform] x86: OLPC: Cleanup config maze completely
Date: Thu, 24 Feb 2011 00:05:35 -0800	[thread overview]
Message-ID: <20110224000535.356cedf7@queued.net> (raw)
In-Reply-To: <tip-dc3119e700216a70e82fe07a79f1618852058354@git.kernel.org>

This one looks wrong, but I see you fixed it up in a later patch.
Are you going to merge the two?  Also, when will these be showing up
in linux-next?


On Wed, 23 Feb 2011 09:52:50 GMT tip-bot for Thomas Gleixner
<tglx@linutronix.de> wrote:

> Commit-ID:  dc3119e700216a70e82fe07a79f1618852058354
> Gitweb:
> http://git.kernel.org/tip/dc3119e700216a70e82fe07a79f1618852058354
> Author:     Thomas Gleixner <tglx@linutronix.de> AuthorDate: Wed, 23
> Feb 2011 10:08:31 +0100 Committer:  Thomas Gleixner
> <tglx@linutronix.de> CommitDate: Wed, 23 Feb 2011 10:40:45 +0100
> 
> x86: OLPC: Cleanup config maze completely
> 
> Neither CONFIG_OLPC_OPENFIRMWARE nor CONFIG_OLPC_OPENFIRMWARE_DT are
> really necessary.
> 
> OLPC selects OLPC_OPENFIRMWARE unconditionally, so move the "select
> OF" part under OLPC config option and fixup the dependencies in
> Makefiles and code.
> 
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> Cc: Andres Salomon <dilinger@queued.net>
> ---
>  arch/x86/Kconfig                |   10 +++-------
>  arch/x86/include/asm/olpc_ofw.h |   11 -----------
>  arch/x86/kernel/head_32.S       |    2 +-
>  arch/x86/platform/olpc/Makefile |    2 +-
>  4 files changed, 5 insertions(+), 20 deletions(-)
> 
> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> index dbc10fc..677501d 100644
> --- a/arch/x86/Kconfig
> +++ b/arch/x86/Kconfig
> @@ -2066,9 +2066,10 @@ config SCx200HR_TIMER
>  
>  config OLPC
>  	bool "One Laptop Per Child support"
> -	select GPIOLIB
> -	select OLPC_OPENFIRMWARE
>  	depends on !X86_PAE
> +	select GPIOLIB
> +	select OF
> +	select OLPC_OPENFIRMWARE_DT if PROC_DEVICETREE
>  	---help---
>  	  Add support for detecting the unique features of the OLPC
>  	  XO hardware.
> @@ -2079,11 +2080,6 @@ config OLPC_XO1
>  	---help---
>  	  Add support for non-essential features of the OLPC XO-1
> laptop. 
> -config OLPC_OPENFIRMWARE
> -	bool
> -	select OF
> -	select OLPC_OPENFIRMWARE_DT if PROC_DEVICETREE
> -
>  config OLPC_OPENFIRMWARE_DT
>  	bool
>  	select OF_PROMTREE
> diff --git a/arch/x86/include/asm/olpc_ofw.h
> b/arch/x86/include/asm/olpc_ofw.h index 641988e..1fff2de 100644
> --- a/arch/x86/include/asm/olpc_ofw.h
> +++ b/arch/x86/include/asm/olpc_ofw.h
> @@ -6,8 +6,6 @@
>  
>  #define OLPC_OFW_SIG 0x2057464F	/* aka "OFW " */
>  
> -#ifdef CONFIG_OLPC_OPENFIRMWARE
> -
>  extern bool olpc_ofw_is_installed(void);
>  
>  /* run an OFW command by calling into the firmware */
> @@ -26,15 +24,6 @@ extern void setup_olpc_ofw_pgd(void);
>  /* check if OFW was detected during boot */
>  extern bool olpc_ofw_present(void);
>  
> -#else /* !CONFIG_OLPC_OPENFIRMWARE */
> -
> -static inline bool olpc_ofw_is_installed(void) { return false; }
> -static inline void olpc_ofw_detect(void) { }
> -static inline void setup_olpc_ofw_pgd(void) { }
> -static inline bool olpc_ofw_present(void) { return false; }
> -
> -#endif /* !CONFIG_OLPC_OPENFIRMWARE */
> -
>  #ifdef CONFIG_OLPC_OPENFIRMWARE_DT
>  extern void olpc_dt_build_devicetree(void);
>  #else
> diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S
> index 767d6c4..d8cc18a 100644
> --- a/arch/x86/kernel/head_32.S
> +++ b/arch/x86/kernel/head_32.S
> @@ -137,7 +137,7 @@ ENTRY(startup_32)
>  	movsl
>  1:
>  
> -#ifdef CONFIG_OLPC_OPENFIRMWARE
> +#ifdef CONFIG_OLPC
>  	/* save OFW's pgdir table for later use when calling into
> OFW */ movl %cr3, %eax
>  	movl %eax, pa(olpc_ofw_pgd)
> diff --git a/arch/x86/platform/olpc/Makefile
> b/arch/x86/platform/olpc/Makefile index e797428..e18e641 100644
> --- a/arch/x86/platform/olpc/Makefile
> +++ b/arch/x86/platform/olpc/Makefile
> @@ -1,4 +1,4 @@
>  obj-$(CONFIG_OLPC)		+= olpc.o
>  obj-$(CONFIG_OLPC_XO1)		+= olpc-xo1.o
> -obj-$(CONFIG_OLPC_OPENFIRMWARE)	+= olpc_ofw.o
> +obj-$(CONFIG_OLPC)		+= olpc_ofw.o
>  obj-$(CONFIG_OLPC_OPENFIRMWARE_DT)	+= olpc_dt.o

       reply	other threads:[~2011-02-24  8:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <tip-dc3119e700216a70e82fe07a79f1618852058354@git.kernel.org>
2011-02-24  8:05 ` Andres Salomon [this message]
2011-02-24  8:30   ` [tip:x86/platform] x86: OLPC: Cleanup config maze completely Thomas Gleixner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110224000535.356cedf7@queued.net \
    --to=dilinger@queued.net \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.