From: daniel.lezcano@linaro.org (Daniel Lezcano)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/7] clocksource/drivers/pxa_timer: Move the Kconfig rule
Date: Mon, 2 Nov 2015 09:03:16 +0100 [thread overview]
Message-ID: <563718C4.5050503@linaro.org> (raw)
In-Reply-To: <CAHLCerPX+bmNMNDFEW24GWXhmrCspfY=UYkhM54ORfoiB5Xfvw@mail.gmail.com>
Hi Amit,
On 11/02/2015 08:44 AM, Amit Kucheria wrote:
> On Fri, Oct 30, 2015 at 4:22 AM, Daniel Lezcano
> <daniel.lezcano@linaro.org> wrote:
>> Instead of having the clocksource's Kconfig depending on the arch, let the
>> arch to select the timer it needs.
>
> Is this the prescribed way to do things nowadays? It leads to more
> options showing up in 'make menuconfig'. Why do I need to see
> CLKSRC_PXA if I'm not even compiling for ARCH_PXA (and not interesting
> in COMPILE_TEST)?
That won't happen.
As the 'bool' has no string after, it won't show up in the menuconfig.
Actually, with the next patch, only COMPILE_TEST will show it up in the
Device Drivers->Clocksource drivers.
>> The CLKSRC_OF dependency is removed because already selected by the ARCH_PXA,
>> and it is added for SA1100.
>
> This bit makes sense.
>
>> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
>> ---
>> arch/arm/Kconfig | 3 +++
>> drivers/clocksource/Kconfig | 3 +--
>> 2 files changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
>> index 72ad724..aa32286 100644
>> --- a/arch/arm/Kconfig
>> +++ b/arch/arm/Kconfig
>> @@ -609,6 +609,7 @@ config ARCH_PXA
>> select AUTO_ZRELADDR
>> select COMMON_CLK
>> select CLKDEV_LOOKUP
>> + select CLKSRC_PXA
>> select CLKSRC_MMIO
>> select CLKSRC_OF
>> select GENERIC_CLOCKEVENTS
>> @@ -669,6 +670,8 @@ config ARCH_SA1100
>> select ARCH_SPARSEMEM_ENABLE
>> select CLKDEV_LOOKUP
>> select CLKSRC_MMIO
>> + select CLKSRC_PXA
>> + select CLKSRC_OF if OF
>> select CPU_FREQ
>> select CPU_SA1100
>> select GENERIC_CLOCKEVENTS
>> diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
>> index 5cd000c..425abbd 100644
>> --- a/drivers/clocksource/Kconfig
>> +++ b/drivers/clocksource/Kconfig
>> @@ -289,8 +289,7 @@ config CLKSRC_TANGO_XTAL
>> select CLKSRC_OF
>>
>> config CLKSRC_PXA
>> - def_bool y if ARCH_PXA || ARCH_SA1100
>> - select CLKSRC_OF if OF
>> + bool
--
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
WARNING: multiple messages have this Message-ID (diff)
From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: Amit Kucheria <amit.kucheria@verdurent.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
John Stultz <john.stultz@linaro.org>,
LKML <linux-kernel@vger.kernel.org>,
Russell King <linux@arm.linux.org.uk>,
"moderated list:ARM PORT" <linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 5/7] clocksource/drivers/pxa_timer: Move the Kconfig rule
Date: Mon, 2 Nov 2015 09:03:16 +0100 [thread overview]
Message-ID: <563718C4.5050503@linaro.org> (raw)
In-Reply-To: <CAHLCerPX+bmNMNDFEW24GWXhmrCspfY=UYkhM54ORfoiB5Xfvw@mail.gmail.com>
Hi Amit,
On 11/02/2015 08:44 AM, Amit Kucheria wrote:
> On Fri, Oct 30, 2015 at 4:22 AM, Daniel Lezcano
> <daniel.lezcano@linaro.org> wrote:
>> Instead of having the clocksource's Kconfig depending on the arch, let the
>> arch to select the timer it needs.
>
> Is this the prescribed way to do things nowadays? It leads to more
> options showing up in 'make menuconfig'. Why do I need to see
> CLKSRC_PXA if I'm not even compiling for ARCH_PXA (and not interesting
> in COMPILE_TEST)?
That won't happen.
As the 'bool' has no string after, it won't show up in the menuconfig.
Actually, with the next patch, only COMPILE_TEST will show it up in the
Device Drivers->Clocksource drivers.
>> The CLKSRC_OF dependency is removed because already selected by the ARCH_PXA,
>> and it is added for SA1100.
>
> This bit makes sense.
>
>> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
>> ---
>> arch/arm/Kconfig | 3 +++
>> drivers/clocksource/Kconfig | 3 +--
>> 2 files changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
>> index 72ad724..aa32286 100644
>> --- a/arch/arm/Kconfig
>> +++ b/arch/arm/Kconfig
>> @@ -609,6 +609,7 @@ config ARCH_PXA
>> select AUTO_ZRELADDR
>> select COMMON_CLK
>> select CLKDEV_LOOKUP
>> + select CLKSRC_PXA
>> select CLKSRC_MMIO
>> select CLKSRC_OF
>> select GENERIC_CLOCKEVENTS
>> @@ -669,6 +670,8 @@ config ARCH_SA1100
>> select ARCH_SPARSEMEM_ENABLE
>> select CLKDEV_LOOKUP
>> select CLKSRC_MMIO
>> + select CLKSRC_PXA
>> + select CLKSRC_OF if OF
>> select CPU_FREQ
>> select CPU_SA1100
>> select GENERIC_CLOCKEVENTS
>> diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
>> index 5cd000c..425abbd 100644
>> --- a/drivers/clocksource/Kconfig
>> +++ b/drivers/clocksource/Kconfig
>> @@ -289,8 +289,7 @@ config CLKSRC_TANGO_XTAL
>> select CLKSRC_OF
>>
>> config CLKSRC_PXA
>> - def_bool y if ARCH_PXA || ARCH_SA1100
>> - select CLKSRC_OF if OF
>> + bool
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
next prev parent reply other threads:[~2015-11-02 8:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-02 7:44 [PATCH 5/7] clocksource/drivers/pxa_timer: Move the Kconfig rule Amit Kucheria
2015-11-02 8:03 ` Daniel Lezcano [this message]
2015-11-02 8:03 ` Daniel Lezcano
2015-11-02 10:10 ` Amit Kucheria
2015-11-02 10:10 ` Amit Kucheria
-- strict thread matches above, loose matches on Subject: below --
2015-10-29 22:52 [PATCH 1/7] time: Define dummy functions for the generic sched clock Daniel Lezcano
2015-10-29 22:52 ` [PATCH 5/7] clocksource/drivers/pxa_timer: Move the Kconfig rule Daniel Lezcano
2015-10-29 22:52 ` Daniel Lezcano
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=563718C4.5050503@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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.