linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: make Freescale QE support a selectable Kconfig option
@ 2008-10-02 15:27 Timur Tabi
  2008-10-03  5:12 ` Kumar Gala
  2008-10-03  7:04 ` Anton Vorontsov
  0 siblings, 2 replies; 15+ messages in thread
From: Timur Tabi @ 2008-10-02 15:27 UTC (permalink / raw)
  To: galak, linuxppc-dev

Modify the Kconfig so that Freescale QUICC Engine (QE) support is a selectable
option, thereby allowing users to compile kernels without any QE support.

The drawback is that QE support is now disabled by default on platforms that
have a QE, and so a defconfig is needed to enable QE and QE devices (like
UCC GETH).  Fortunately, all the current relevant defconfigs do that already.

Signed-off-by: Timur Tabi <timur@freescale.com>
---

This patch should be applied to Kumar's branch for 2.6.28 patches.

 arch/powerpc/platforms/83xx/Kconfig |    4 ----
 arch/powerpc/platforms/Kconfig      |    3 ++-
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/arch/powerpc/platforms/83xx/Kconfig b/arch/powerpc/platforms/83xx/Kconfig
index 6159c5d..4a6cc78 100644
--- a/arch/powerpc/platforms/83xx/Kconfig
+++ b/arch/powerpc/platforms/83xx/Kconfig
@@ -19,7 +19,6 @@ config MPC831x_RDB
 config MPC832x_MDS
 	bool "Freescale MPC832x MDS"
 	select DEFAULT_UIMAGE
-	select QUICC_ENGINE
 	select PPC_MPC832x
 	help
 	  This option enables support for the MPC832x MDS evaluation board.
@@ -27,7 +26,6 @@ config MPC832x_MDS
 config MPC832x_RDB
 	bool "Freescale MPC832x RDB"
 	select DEFAULT_UIMAGE
-	select QUICC_ENGINE
 	select PPC_MPC832x
 	help
 	  This option enables support for the MPC8323 RDB board.
@@ -57,14 +55,12 @@ config MPC834x_ITX
 config MPC836x_MDS
 	bool "Freescale MPC836x MDS"
 	select DEFAULT_UIMAGE
-	select QUICC_ENGINE
 	help
 	  This option enables support for the MPC836x MDS Processor Board.
 
 config MPC836x_RDK
 	bool "Freescale/Logic MPC836x RDK"
 	select DEFAULT_UIMAGE
-	select QUICC_ENGINE
 	select QE_GPIO
 	select FSL_GTM
 	select FSL_LBC
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index 9578c45..6cf517f 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -239,7 +239,8 @@ config TAU_AVERAGE
 	  If in doubt, say N here.
 
 config QUICC_ENGINE
-	bool
+	bool "Freescale QUICC Engine (QE) Support"
+	depends on FSL_SOC
 	select PPC_LIB_RHEAP
 	select CRC32
 	help
-- 
1.5.5

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [PATCH] powerpc: make Freescale QE support a selectable Kconfig option
  2008-10-02 15:27 [PATCH] powerpc: make Freescale QE support a selectable Kconfig option Timur Tabi
@ 2008-10-03  5:12 ` Kumar Gala
  2008-10-03  7:04 ` Anton Vorontsov
  1 sibling, 0 replies; 15+ messages in thread
From: Kumar Gala @ 2008-10-03  5:12 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linuxppc-dev


On Oct 2, 2008, at 10:27 AM, Timur Tabi wrote:

> Modify the Kconfig so that Freescale QUICC Engine (QE) support is a  
> selectable
> option, thereby allowing users to compile kernels without any QE  
> support.
>
> The drawback is that QE support is now disabled by default on  
> platforms that
> have a QE, and so a defconfig is needed to enable QE and QE devices  
> (like
> UCC GETH).  Fortunately, all the current relevant defconfigs do that  
> already.
>
> Signed-off-by: Timur Tabi <timur@freescale.com>
> ---
>
> This patch should be applied to Kumar's branch for 2.6.28 patches.
>
> arch/powerpc/platforms/83xx/Kconfig |    4 ----
> arch/powerpc/platforms/Kconfig      |    3 ++-
> 2 files changed, 2 insertions(+), 5 deletions(-)

What about the 85xx/Kconfig users?

- k

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] powerpc: make Freescale QE support a selectable Kconfig option
  2008-10-02 15:27 [PATCH] powerpc: make Freescale QE support a selectable Kconfig option Timur Tabi
  2008-10-03  5:12 ` Kumar Gala
@ 2008-10-03  7:04 ` Anton Vorontsov
  2008-10-03  7:58   ` Kumar Gala
  1 sibling, 1 reply; 15+ messages in thread
From: Anton Vorontsov @ 2008-10-03  7:04 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linuxppc-dev

On Thu, Oct 02, 2008 at 10:27:57AM -0500, Timur Tabi wrote:
> Modify the Kconfig so that Freescale QUICC Engine (QE) support is a selectable
> option, thereby allowing users to compile kernels without any QE support.
> 
> The drawback is that QE support is now disabled by default on platforms that
> have a QE, and so a defconfig is needed to enable QE and QE devices (like
> UCC GETH).  Fortunately, all the current relevant defconfigs do that already.
> 
> Signed-off-by: Timur Tabi <timur@freescale.com>
> ---

[...]
>  config MPC836x_RDK
>  	bool "Freescale/Logic MPC836x RDK"
>  	select DEFAULT_UIMAGE
> -	select QUICC_ENGINE
>  	select QE_GPIO

IIRC selects do not honor any dependencies, i.e. you should delete
the QE_GPIO too.

>  	select FSL_GTM
>  	select FSL_LBC
> diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
> index 9578c45..6cf517f 100644
> --- a/arch/powerpc/platforms/Kconfig
> +++ b/arch/powerpc/platforms/Kconfig
> @@ -239,7 +239,8 @@ config TAU_AVERAGE
>  	  If in doubt, say N here.
>  
>  config QUICC_ENGINE
> -	bool
> +	bool "Freescale QUICC Engine (QE) Support"
> +	depends on FSL_SOC
>  	select PPC_LIB_RHEAP
>  	select CRC32
>  	help
> -- 
> 1.5.5

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] powerpc: make Freescale QE support a selectable Kconfig option
  2008-10-03  7:04 ` Anton Vorontsov
@ 2008-10-03  7:58   ` Kumar Gala
  2008-10-03  8:48     ` Anton Vorontsov
  0 siblings, 1 reply; 15+ messages in thread
From: Kumar Gala @ 2008-10-03  7:58 UTC (permalink / raw)
  To: avorontsov; +Cc: linuxppc-dev, Timur Tabi


On Oct 3, 2008, at 2:04 AM, Anton Vorontsov wrote:

> On Thu, Oct 02, 2008 at 10:27:57AM -0500, Timur Tabi wrote:
>> Modify the Kconfig so that Freescale QUICC Engine (QE) support is a  
>> selectable
>> option, thereby allowing users to compile kernels without any QE  
>> support.
>>
>> The drawback is that QE support is now disabled by default on  
>> platforms that
>> have a QE, and so a defconfig is needed to enable QE and QE devices  
>> (like
>> UCC GETH).  Fortunately, all the current relevant defconfigs do  
>> that already.
>>
>> Signed-off-by: Timur Tabi <timur@freescale.com>
>> ---
>
> [...]
>> config MPC836x_RDK
>> 	bool "Freescale/Logic MPC836x RDK"
>> 	select DEFAULT_UIMAGE
>> -	select QUICC_ENGINE
>> 	select QE_GPIO
>
> IIRC selects do not honor any dependencies, i.e. you should delete
> the QE_GPIO too.

Is QE_GPIO need by the board?  or you just enabled it to have it?

- k

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] powerpc: make Freescale QE support a selectable Kconfig option
  2008-10-03  7:58   ` Kumar Gala
@ 2008-10-03  8:48     ` Anton Vorontsov
  2008-10-03  9:08       ` Anton Vorontsov
  0 siblings, 1 reply; 15+ messages in thread
From: Anton Vorontsov @ 2008-10-03  8:48 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev, Timur Tabi

On Fri, Oct 03, 2008 at 02:58:57AM -0500, Kumar Gala wrote:
>
> On Oct 3, 2008, at 2:04 AM, Anton Vorontsov wrote:
>
>> On Thu, Oct 02, 2008 at 10:27:57AM -0500, Timur Tabi wrote:
>>> Modify the Kconfig so that Freescale QUICC Engine (QE) support is a  
>>> selectable
>>> option, thereby allowing users to compile kernels without any QE  
>>> support.
>>>
>>> The drawback is that QE support is now disabled by default on  
>>> platforms that
>>> have a QE, and so a defconfig is needed to enable QE and QE devices  
>>> (like
>>> UCC GETH).  Fortunately, all the current relevant defconfigs do that 
>>> already.
>>>
>>> Signed-off-by: Timur Tabi <timur@freescale.com>
>>> ---
>>
>> [...]
>>> config MPC836x_RDK
>>> 	bool "Freescale/Logic MPC836x RDK"
>>> 	select DEFAULT_UIMAGE
>>> -	select QUICC_ENGINE
>>> 	select QE_GPIO
>>
>> IIRC selects do not honor any dependencies, i.e. you should delete
>> the QE_GPIO too.
>
> Is QE_GPIO need by the board?  or you just enabled it to have it?

Well... This select is a relic from the time when we were discussing
how to register QE GPIOs: using board files or using a dedicated
arch_initcall. We seemed to agree on arch_initcall, but in the end
you applied 'board file' approach. ;-)

http://www.mail-archive.com/linuxppc-dev@ozlabs.org/msg19147.html

Later I sent you an update that eliminated the need of the QE_GPIO
select:

http://www.mail-archive.com/linuxppc-dev@ozlabs.org/msg19147.html

But nobody recalled to remove the 'select QE_GPIO' after that...

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] powerpc: make Freescale QE support a selectable Kconfig option
  2008-10-03  8:48     ` Anton Vorontsov
@ 2008-10-03  9:08       ` Anton Vorontsov
  2008-10-03 15:43         ` Timur Tabi
  0 siblings, 1 reply; 15+ messages in thread
From: Anton Vorontsov @ 2008-10-03  9:08 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev, Timur Tabi

On Fri, Oct 03, 2008 at 12:48:49PM +0400, Anton Vorontsov wrote:
> On Fri, Oct 03, 2008 at 02:58:57AM -0500, Kumar Gala wrote:
> >
> > On Oct 3, 2008, at 2:04 AM, Anton Vorontsov wrote:
> >
> >> On Thu, Oct 02, 2008 at 10:27:57AM -0500, Timur Tabi wrote:
> >>> Modify the Kconfig so that Freescale QUICC Engine (QE) support is a  
> >>> selectable
> >>> option, thereby allowing users to compile kernels without any QE  
> >>> support.
> >>>
> >>> The drawback is that QE support is now disabled by default on  
> >>> platforms that
> >>> have a QE, and so a defconfig is needed to enable QE and QE devices  
> >>> (like
> >>> UCC GETH).  Fortunately, all the current relevant defconfigs do that 
> >>> already.
> >>>
> >>> Signed-off-by: Timur Tabi <timur@freescale.com>
> >>> ---
> >>
> >> [...]
> >>> config MPC836x_RDK
> >>> 	bool "Freescale/Logic MPC836x RDK"
> >>> 	select DEFAULT_UIMAGE
> >>> -	select QUICC_ENGINE
> >>> 	select QE_GPIO
> >>
> >> IIRC selects do not honor any dependencies, i.e. you should delete
> >> the QE_GPIO too.
> >
> > Is QE_GPIO need by the board?  or you just enabled it to have it?

Btw, as for the need.. yes, it was needed to support the FHCI. But
now the FHCI would just depend on it, which is better approach anyway.

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] powerpc: make Freescale QE support a selectable Kconfig option
  2008-10-03  9:08       ` Anton Vorontsov
@ 2008-10-03 15:43         ` Timur Tabi
  2008-10-03 16:05           ` Anton Vorontsov
  0 siblings, 1 reply; 15+ messages in thread
From: Timur Tabi @ 2008-10-03 15:43 UTC (permalink / raw)
  To: avorontsov; +Cc: linuxppc-dev

Anton Vorontsov wrote:

> Btw, as for the need.. yes, it was needed to support the FHCI. But
> now the FHCI would just depend on it, which is better approach anyway.

I also noticed that "QE GPIO support" is a top-level Kconfig option, instead of
under Device Drivers -> GPIO.  Is that intentional?

-- 
Timur Tabi
Linux kernel developer at Freescale

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] powerpc: make Freescale QE support a selectable Kconfig option
  2008-10-03 15:43         ` Timur Tabi
@ 2008-10-03 16:05           ` Anton Vorontsov
  2008-10-03 16:09             ` Timur Tabi
  0 siblings, 1 reply; 15+ messages in thread
From: Anton Vorontsov @ 2008-10-03 16:05 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linuxppc-dev

On Fri, Oct 03, 2008 at 10:43:50AM -0500, Timur Tabi wrote:
> Anton Vorontsov wrote:
> 
> > Btw, as for the need.. yes, it was needed to support the FHCI. But
> > now the FHCI would just depend on it, which is better approach anyway.
> 
> I also noticed that "QE GPIO support" is a top-level Kconfig option, instead of
> under Device Drivers -> GPIO.  Is that intentional?

Yup. David said that platform GPIO controllers should not go into the
drivers/gpio/, their place is in the arch/.

Thanks,

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] powerpc: make Freescale QE support a selectable Kconfig option
  2008-10-03 16:05           ` Anton Vorontsov
@ 2008-10-03 16:09             ` Timur Tabi
  2008-10-03 16:18               ` Kumar Gala
  2008-10-03 16:23               ` Anton Vorontsov
  0 siblings, 2 replies; 15+ messages in thread
From: Timur Tabi @ 2008-10-03 16:09 UTC (permalink / raw)
  To: avorontsov; +Cc: linuxppc-dev

Anton Vorontsov wrote:

> Yup. David said that platform GPIO controllers should not go into the
> drivers/gpio/, their place is in the arch/.

Then when I do "make menuconfig", why doesn't that option appear under "Platform
support"?  This is what I see now:

[*] Networking support  --->
    Device Drivers  --->
    File systems  --->
[*] QE GPIO support
    Library routines  --->
    Kernel hacking  --->

-- 
Timur Tabi
Linux kernel developer at Freescale

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] powerpc: make Freescale QE support a selectable Kconfig option
  2008-10-03 16:09             ` Timur Tabi
@ 2008-10-03 16:18               ` Kumar Gala
  2008-10-03 16:23               ` Anton Vorontsov
  1 sibling, 0 replies; 15+ messages in thread
From: Kumar Gala @ 2008-10-03 16:18 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linuxppc-dev


On Oct 3, 2008, at 11:09 AM, Timur Tabi wrote:

> Anton Vorontsov wrote:
>
>> Yup. David said that platform GPIO controllers should not go into the
>> drivers/gpio/, their place is in the arch/.
>
> Then when I do "make menuconfig", why doesn't that option appear  
> under "Platform
> support"?  This is what I see now:
>
> [*] Networking support  --->
>    Device Drivers  --->
>    File systems  --->
> [*] QE GPIO support
>    Library routines  --->
>    Kernel hacking  --->

I'm moving it under platform like the 8xxx GPIO config

- k

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] powerpc: make Freescale QE support a selectable Kconfig option
  2008-10-03 16:09             ` Timur Tabi
  2008-10-03 16:18               ` Kumar Gala
@ 2008-10-03 16:23               ` Anton Vorontsov
  2008-10-03 16:54                 ` Timur Tabi
  2008-10-03 17:48                 ` Kumar Gala
  1 sibling, 2 replies; 15+ messages in thread
From: Anton Vorontsov @ 2008-10-03 16:23 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linuxppc-dev

Otherwise user-selectable options appears at the top level.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
---

On Fri, Oct 03, 2008 at 11:09:09AM -0500, Timur Tabi wrote:
> Anton Vorontsov wrote:
> 
> > Yup. David said that platform GPIO controllers should not go into the
> > drivers/gpio/, their place is in the arch/.
> 
> Then when I do "make menuconfig", why doesn't that option appear under "Platform
> support"?

Because the whole arch/powerpc/sysdev/qe_lib/Kconfig includes into
the top level Kconfig.

> This is what I see now:
> 
> [*] Networking support  --->
>     Device Drivers  --->
>     File systems  --->
> [*] QE GPIO support
>     Library routines  --->
>     Kernel hacking  --->

Damn, this is bad indeed (I don't use the menuconfig, never saw this).

I think arch/powerpc/sysdev/qe_lib/Kconfig inclusion should be fixed.

How about this patch? Or we can move QUICC_ENGINE into the
qe_lib/Kconfig and include it in the platform/Kconfig... either
way would work.

Thanks for noticing.

 arch/powerpc/Kconfig               |    2 --
 arch/powerpc/platforms/Kconfig     |   36 ++++++++++++++++++++++++++++++++++++
 arch/powerpc/sysdev/qe_lib/Kconfig |   35 -----------------------------------
 3 files changed, 36 insertions(+), 37 deletions(-)
 delete mode 100644 arch/powerpc/sysdev/qe_lib/Kconfig

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 587da5e..dd976b6 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -829,8 +829,6 @@ source "fs/Kconfig"
 
 # XXX source "arch/ppc/8260_io/Kconfig"
 
-source "arch/powerpc/sysdev/qe_lib/Kconfig"
-
 source "lib/Kconfig"
 
 source "arch/powerpc/Kconfig.debug"
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index 4c900ef..da6da51 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -248,6 +248,42 @@ config QUICC_ENGINE
 	  Selecting this option means that you wish to build a kernel
 	  for a machine with a QE coprocessor.
 
+if QUICC_ENGINE
+
+config UCC_SLOW
+	bool
+	default y if SERIAL_QE
+	help
+	  This option provides qe_lib support to UCC slow
+	  protocols: UART, BISYNC, QMC
+
+config UCC_FAST
+	bool
+	default y if UCC_GETH
+	help
+	  This option provides qe_lib support to UCC fast
+	  protocols: HDLC, Ethernet, ATM, transparent
+
+config UCC
+	bool
+	default y if UCC_FAST || UCC_SLOW
+
+config QE_USB
+	bool
+	help
+	  QE USB Host Controller support
+
+config QE_GPIO
+	bool "QE GPIO support"
+	depends on QUICC_ENGINE
+	select GENERIC_GPIO
+	select ARCH_REQUIRE_GPIOLIB
+	help
+	  Say Y here if you're going to use hardware that connects to the
+	  QE GPIOs.
+
+endif
+
 config CPM2
 	bool "Enable support for the CPM2 (Communications Processor Module)"
 	depends on MPC85xx || 8260
diff --git a/arch/powerpc/sysdev/qe_lib/Kconfig b/arch/powerpc/sysdev/qe_lib/Kconfig
deleted file mode 100644
index 1ce5464..0000000
--- a/arch/powerpc/sysdev/qe_lib/Kconfig
+++ /dev/null
@@ -1,35 +0,0 @@
-#
-# QE Communication options
-#
-
-config UCC_SLOW
-	bool
-	default y if SERIAL_QE
-	help
-	  This option provides qe_lib support to UCC slow
-	  protocols: UART, BISYNC, QMC
-
-config UCC_FAST
-	bool
-	default y if UCC_GETH
-	help
-	  This option provides qe_lib support to UCC fast
-	  protocols: HDLC, Ethernet, ATM, transparent
-
-config UCC
-	bool
-	default y if UCC_FAST || UCC_SLOW
-
-config QE_USB
-	bool
-	help
-	  QE USB Host Controller support
-
-config QE_GPIO
-	bool "QE GPIO support"
-	depends on QUICC_ENGINE
-	select GENERIC_GPIO
-	select ARCH_REQUIRE_GPIOLIB
-	help
-	  Say Y here if you're going to use hardware that connects to the
-	  QE GPIOs.
-- 
1.5.6.3

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [PATCH] powerpc: make Freescale QE support a selectable Kconfig option
  2008-10-03 16:23               ` Anton Vorontsov
@ 2008-10-03 16:54                 ` Timur Tabi
  2008-10-03 17:48                 ` Kumar Gala
  1 sibling, 0 replies; 15+ messages in thread
From: Timur Tabi @ 2008-10-03 16:54 UTC (permalink / raw)
  To: avorontsov, Kumar Gala; +Cc: linuxppc-dev

On Fri, Oct 3, 2008 at 11:23 AM, Anton Vorontsov
<avorontsov@ru.mvista.com> wrote:
> How about this patch? Or we can move QUICC_ENGINE into the
> qe_lib/Kconfig and include it in the platform/Kconfig... either
> way would work.
>
> Thanks for noticing.
>
>  arch/powerpc/Kconfig               |    2 --
>  arch/powerpc/platforms/Kconfig     |   36 ++++++++++++++++++++++++++++++++++++
>  arch/powerpc/sysdev/qe_lib/Kconfig |   35 -----------------------------------
>  3 files changed, 36 insertions(+), 37 deletions(-)
>  delete mode 100644 arch/powerpc/sysdev/qe_lib/Kconfig

Acked-by: Timur Tabi <timur@freescale.com>

-- 
Timur Tabi
Linux kernel developer at Freescale

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] powerpc: make Freescale QE support a selectable Kconfig option
  2008-10-03 16:23               ` Anton Vorontsov
  2008-10-03 16:54                 ` Timur Tabi
@ 2008-10-03 17:48                 ` Kumar Gala
  2008-10-03 19:40                   ` [PATCH] powerpc/QE: move QE_GPIO Kconfig symbol into the platforms/Kconfig Anton Vorontsov
  1 sibling, 1 reply; 15+ messages in thread
From: Kumar Gala @ 2008-10-03 17:48 UTC (permalink / raw)
  To: avorontsov; +Cc: linuxppc-dev, Timur Tabi

> I think arch/powerpc/sysdev/qe_lib/Kconfig inclusion should be fixed.
>
> How about this patch? Or we can move QUICC_ENGINE into the
> qe_lib/Kconfig and include it in the platform/Kconfig... either
> way would work.
>
> Thanks for noticing.

I want to leave the "hidden" options in qe_lib/Kconfig.. just move the  
user selectable one (QE_GPIO) in to platforms/Kconfig

- k

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH] powerpc/QE: move QE_GPIO Kconfig symbol into the platforms/Kconfig
  2008-10-03 17:48                 ` Kumar Gala
@ 2008-10-03 19:40                   ` Anton Vorontsov
  2008-10-03 21:55                     ` Kumar Gala
  0 siblings, 1 reply; 15+ messages in thread
From: Anton Vorontsov @ 2008-10-03 19:40 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev, Timur Tabi

Specifying user-selectable option in the qe_lib/Kconfig was a bad idea
because the qe_lib/Kconfig is included into the top level Kconfig, and
thus the QE_GPIO option appears at the top level menu.

This patch effectively moves the QE_GPIO option under the platform menu
instead.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
---

On Fri, Oct 03, 2008 at 12:48:31PM -0500, Kumar Gala wrote:
[...]
> I want to leave the "hidden" options in qe_lib/Kconfig.. just move the  
> user selectable one (QE_GPIO) in to platforms/Kconfig

Here it is.

 arch/powerpc/platforms/Kconfig     |    9 +++++++++
 arch/powerpc/sysdev/qe_lib/Kconfig |    9 ---------
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index 8871185..71845d7 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -249,6 +249,15 @@ config QUICC_ENGINE
 	  Selecting this option means that you wish to build a kernel
 	  for a machine with a QE coprocessor.
 
+config QE_GPIO
+	bool "QE GPIO support"
+	depends on QUICC_ENGINE
+	select GENERIC_GPIO
+	select ARCH_REQUIRE_GPIOLIB
+	help
+	  Say Y here if you're going to use hardware that connects to the
+	  QE GPIOs.
+
 config CPM2
 	bool "Enable support for the CPM2 (Communications Processor Module)"
 	depends on MPC85xx || 8260
diff --git a/arch/powerpc/sysdev/qe_lib/Kconfig b/arch/powerpc/sysdev/qe_lib/Kconfig
index 1ce5464..76ffbc4 100644
--- a/arch/powerpc/sysdev/qe_lib/Kconfig
+++ b/arch/powerpc/sysdev/qe_lib/Kconfig
@@ -24,12 +24,3 @@ config QE_USB
 	bool
 	help
 	  QE USB Host Controller support
-
-config QE_GPIO
-	bool "QE GPIO support"
-	depends on QUICC_ENGINE
-	select GENERIC_GPIO
-	select ARCH_REQUIRE_GPIOLIB
-	help
-	  Say Y here if you're going to use hardware that connects to the
-	  QE GPIOs.
-- 
1.5.6.3

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [PATCH] powerpc/QE: move QE_GPIO Kconfig symbol into the platforms/Kconfig
  2008-10-03 19:40                   ` [PATCH] powerpc/QE: move QE_GPIO Kconfig symbol into the platforms/Kconfig Anton Vorontsov
@ 2008-10-03 21:55                     ` Kumar Gala
  0 siblings, 0 replies; 15+ messages in thread
From: Kumar Gala @ 2008-10-03 21:55 UTC (permalink / raw)
  To: avorontsov; +Cc: linuxppc-dev, Timur Tabi


On Oct 3, 2008, at 2:40 PM, Anton Vorontsov wrote:

> Specifying user-selectable option in the qe_lib/Kconfig was a bad idea
> because the qe_lib/Kconfig is included into the top level Kconfig, and
> thus the QE_GPIO option appears at the top level menu.
>
> This patch effectively moves the QE_GPIO option under the platform  
> menu
> instead.
>
> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
> ---
>
> On Fri, Oct 03, 2008 at 12:48:31PM -0500, Kumar Gala wrote:
> [...]
>> I want to leave the "hidden" options in qe_lib/Kconfig.. just move  
>> the
>> user selectable one (QE_GPIO) in to platforms/Kconfig
>
> Here it is.
>
> arch/powerpc/platforms/Kconfig     |    9 +++++++++
> arch/powerpc/sysdev/qe_lib/Kconfig |    9 ---------
> 2 files changed, 9 insertions(+), 9 deletions(-)

applied

- k

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2008-10-03 21:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-02 15:27 [PATCH] powerpc: make Freescale QE support a selectable Kconfig option Timur Tabi
2008-10-03  5:12 ` Kumar Gala
2008-10-03  7:04 ` Anton Vorontsov
2008-10-03  7:58   ` Kumar Gala
2008-10-03  8:48     ` Anton Vorontsov
2008-10-03  9:08       ` Anton Vorontsov
2008-10-03 15:43         ` Timur Tabi
2008-10-03 16:05           ` Anton Vorontsov
2008-10-03 16:09             ` Timur Tabi
2008-10-03 16:18               ` Kumar Gala
2008-10-03 16:23               ` Anton Vorontsov
2008-10-03 16:54                 ` Timur Tabi
2008-10-03 17:48                 ` Kumar Gala
2008-10-03 19:40                   ` [PATCH] powerpc/QE: move QE_GPIO Kconfig symbol into the platforms/Kconfig Anton Vorontsov
2008-10-03 21:55                     ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).