* [PATCH] powerpc: automatically select QE options
@ 2007-03-12 20:40 Timur Tabi
2007-03-13 10:24 ` Li Yang-r58472
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Timur Tabi @ 2007-03-12 20:40 UTC (permalink / raw)
To: linuxppc-dev, galak; +Cc: Timur Tabi
Change the Kconfig files so that the Freescale QE options are automatically
selected if a QE device is selected. Previously, you'd need to manually
select UCC_FAST if you want any "fast" UCC devices, such as Gigabit Ethernet.
Now, the QE Gigabit Ethernet option is always available if the device has a
QE, and UCC_FAST is automatically enabled. A side-effect is that the
"QE Options" menu no longer exists.
Signed-off-by: Timur Tabi <timur@freescale.com>
---
arch/powerpc/Kconfig | 2 --
arch/powerpc/sysdev/qe_lib/Kconfig | 10 ++--------
drivers/net/Kconfig | 9 +++++----
3 files changed, 7 insertions(+), 14 deletions(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 6dfbd52..54dd66c 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -396,8 +396,6 @@ endchoice
config QUICC_ENGINE
bool
- depends on PPC_MPC836x || PPC_MPC832x
- default y
help
The QUICC Engine (QE) is a new generation of communications
coprocessors on Freescale embedded CPUs (akin to CPM in older chips).
diff --git a/arch/powerpc/sysdev/qe_lib/Kconfig b/arch/powerpc/sysdev/qe_lib/Kconfig
index a725e80..887739f 100644
--- a/arch/powerpc/sysdev/qe_lib/Kconfig
+++ b/arch/powerpc/sysdev/qe_lib/Kconfig
@@ -2,11 +2,8 @@
# QE Communication options
#
-menu "QE Options"
- depends on QUICC_ENGINE
-
config UCC_SLOW
- bool "UCC Slow Protocols Support"
+ bool
default n
select UCC
help
@@ -14,10 +11,9 @@ config UCC_SLOW
protocols: UART, BISYNC, QMC
config UCC_FAST
- bool "UCC Fast Protocols Support"
+ bool
default n
select UCC
- select UCC_SLOW
help
This option provides qe_lib support to UCC fast
protocols: HDLC, Ethernet, ATM, transparent
@@ -26,5 +22,3 @@ config UCC
bool
default y if UCC_FAST || UCC_SLOW
-endmenu
-
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index d9400ef..b92a4e6 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -2272,11 +2272,12 @@ config GFAR_NAPI
depends on GIANFAR
config UCC_GETH
- tristate "Freescale QE UCC GETH"
- depends on QUICC_ENGINE && UCC_FAST
+ tristate "Freescale QE Gigabit Ethernet"
+ depends on QUICC_ENGINE
+ select UCC_FAST
help
- This driver supports the Gigabit Ethernet mode of QE UCC.
- QE can be found on MPC836x CPUs.
+ This driver supports the Gigabit Ethernet mode of the QUICC Engine,
+ which is available on some Freescale SOCs.
config UGETH_NAPI
bool "NAPI Support"
--
1.5.0.2.260.g2eb065
^ permalink raw reply related [flat|nested] 6+ messages in thread
* RE: [PATCH] powerpc: automatically select QE options
2007-03-12 20:40 [PATCH] powerpc: automatically select QE options Timur Tabi
@ 2007-03-13 10:24 ` Li Yang-r58472
2007-03-13 14:38 ` Kumar Gala
2007-03-14 18:15 ` Kumar Gala
2007-05-28 17:43 ` Sergei Shtylyov
2 siblings, 1 reply; 6+ messages in thread
From: Li Yang-r58472 @ 2007-03-13 10:24 UTC (permalink / raw)
To: Tabi Timur-B04825, linuxppc-dev, galak
Timur,
ACK on removing choices for UCC_FAST and UCC_SLOW. =20
> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
> index 6dfbd52..54dd66c 100644
> --- a/arch/powerpc/Kconfig
> +++ b/arch/powerpc/Kconfig
> @@ -396,8 +396,6 @@ endchoice
>=20
> config QUICC_ENGINE
> bool
> - depends on PPC_MPC836x || PPC_MPC832x
> - default y
> help
> The QUICC Engine (QE) is a new generation of communications
> coprocessors on Freescale embedded CPUs (akin to CPM in older
chips).
But I'd prefer QUICC_ENGINE option to depend on chip models rather than
boards. Also the comment doesn't reflect this change.
[snip]
- Leo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] powerpc: automatically select QE options
2007-03-13 10:24 ` Li Yang-r58472
@ 2007-03-13 14:38 ` Kumar Gala
0 siblings, 0 replies; 6+ messages in thread
From: Kumar Gala @ 2007-03-13 14:38 UTC (permalink / raw)
To: Li Yang-r58472; +Cc: linuxppc-dev, Tabi Timur-B04825
On Mar 13, 2007, at 5:24 AM, Li Yang-r58472 wrote:
> Timur,
>
> ACK on removing choices for UCC_FAST and UCC_SLOW.
>
>> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
>> index 6dfbd52..54dd66c 100644
>> --- a/arch/powerpc/Kconfig
>> +++ b/arch/powerpc/Kconfig
>> @@ -396,8 +396,6 @@ endchoice
>>
>> config QUICC_ENGINE
>> bool
>> - depends on PPC_MPC836x || PPC_MPC832x
>> - default y
>> help
>> The QUICC Engine (QE) is a new generation of communications
>> coprocessors on Freescale embedded CPUs (akin to CPM in older
> chips).
>
> But I'd prefer QUICC_ENGINE option to depend on chip models rather
> than
> boards. Also the comment doesn't reflect this change.
We are going to make QUICC_ENGINE a selectable option like it is for
CPM2. I agree that selectable option should depend on chip rather
than board.
- k
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] powerpc: automatically select QE options
2007-03-12 20:40 [PATCH] powerpc: automatically select QE options Timur Tabi
2007-03-13 10:24 ` Li Yang-r58472
@ 2007-03-14 18:15 ` Kumar Gala
2007-05-28 17:43 ` Sergei Shtylyov
2 siblings, 0 replies; 6+ messages in thread
From: Kumar Gala @ 2007-03-14 18:15 UTC (permalink / raw)
To: Timur Tabi; +Cc: linuxppc-dev
On Mon, 12 Mar 2007, Timur Tabi wrote:
> Change the Kconfig files so that the Freescale QE options are automatically
> selected if a QE device is selected. Previously, you'd need to manually
> select UCC_FAST if you want any "fast" UCC devices, such as Gigabit Ethernet.
> Now, the QE Gigabit Ethernet option is always available if the device has a
> QE, and UCC_FAST is automatically enabled. A side-effect is that the
> "QE Options" menu no longer exists.
>
> Signed-off-by: Timur Tabi <timur@freescale.com>
applied.
- k
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] powerpc: automatically select QE options
2007-03-12 20:40 [PATCH] powerpc: automatically select QE options Timur Tabi
2007-03-13 10:24 ` Li Yang-r58472
2007-03-14 18:15 ` Kumar Gala
@ 2007-05-28 17:43 ` Sergei Shtylyov
2007-05-29 0:20 ` Timur Tabi
2 siblings, 1 reply; 6+ messages in thread
From: Sergei Shtylyov @ 2007-05-28 17:43 UTC (permalink / raw)
To: Timur Tabi; +Cc: linuxppc-dev
Hello.
Timur Tabi wrote:
> Change the Kconfig files so that the Freescale QE options are automatically
> selected if a QE device is selected. Previously, you'd need to manually
> select UCC_FAST if you want any "fast" UCC devices, such as Gigabit Ethernet.
> Now, the QE Gigabit Ethernet option is always available if the device has a
> QE, and UCC_FAST is automatically enabled. A side-effect is that the
> "QE Options" menu no longer exists.
> diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
> index d9400ef..b92a4e6 100644
> --- a/drivers/net/Kconfig
> +++ b/drivers/net/Kconfig
> @@ -2272,11 +2272,12 @@ config GFAR_NAPI
> depends on GIANFAR
>
> config UCC_GETH
> - tristate "Freescale QE UCC GETH"
> - depends on QUICC_ENGINE && UCC_FAST
> + tristate "Freescale QE Gigabit Ethernet"
> + depends on QUICC_ENGINE
> + select UCC_FAST
Grr... this causes menuconfig to complain on non-PPC archs:
drivers/net/Kconfig:2278:warning: 'select' used by config symbol 'UCC_GETH'
refer to undefined symbol 'UCC_FAST'
WBR, Sergei
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] powerpc: automatically select QE options
2007-05-28 17:43 ` Sergei Shtylyov
@ 2007-05-29 0:20 ` Timur Tabi
0 siblings, 0 replies; 6+ messages in thread
From: Timur Tabi @ 2007-05-29 0:20 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: linuxppc-dev
Sergei Shtylyov wrote:
> Grr... this causes menuconfig to complain on non-PPC archs:
>
> drivers/net/Kconfig:2278:warning: 'select' used by config symbol
> 'UCC_GETH' refer to undefined symbol 'UCC_FAST'
I submitted a fix for this a LONG time ago. It was applied to the -mm tree and to Kumar's tree, so I don't know why you don't have it.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-05-29 0:19 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-12 20:40 [PATCH] powerpc: automatically select QE options Timur Tabi
2007-03-13 10:24 ` Li Yang-r58472
2007-03-13 14:38 ` Kumar Gala
2007-03-14 18:15 ` Kumar Gala
2007-05-28 17:43 ` Sergei Shtylyov
2007-05-29 0:20 ` Timur Tabi
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).