linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: boris.brezillon@free-electrons.com (Boris Brezillon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 3/6] clocksource/drivers: atmel-pit: allow unselecting ATMEL_PIT
Date: Mon, 8 Jan 2018 09:22:55 +0100	[thread overview]
Message-ID: <20180108092255.7e0f9f07@bbrezillon> (raw)
In-Reply-To: <b8c0c142-2a69-648b-1389-a4467a26211b@linaro.org>

On Mon, 8 Jan 2018 08:23:02 +0100
Daniel Lezcano <daniel.lezcano@linaro.org> wrote:

> On 07/01/2018 19:44, Alexandre Belloni wrote:
> > On 07/01/2018 at 19:07:13 +0100, Daniel Lezcano wrote:  
> >> On 05/01/2018 15:30, Alexandre Belloni wrote:  
> >>> With the new TCB clocksource driver, atmel platforms are now able to boot
> >>> without the PIT driver. Allow unselecting it.
> >>>
> >>> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
> >>> ---
> >>>  drivers/clocksource/Kconfig | 9 ++++++++-
> >>>  1 file changed, 8 insertions(+), 1 deletion(-)
> >>>
> >>> diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
> >>> index 5609572e0236..55ccfa0ba63b 100644
> >>> --- a/drivers/clocksource/Kconfig
> >>> +++ b/drivers/clocksource/Kconfig
> >>> @@ -381,7 +381,14 @@ config ARMV7M_SYSTICK
> >>>  
> >>>  config ATMEL_PIT
> >>>  	select TIMER_OF if OF
> >>> -	def_bool SOC_AT91SAM9 || SOC_SAMA5
> >>> +	bool "Atmel Periodic Interval Timer (PIT)"
> >>> +	depends on SOC_AT91SAM9 || SOC_SAMA5
> >>> +	default SOC_AT91SAM9 || SOC_SAMA5
> >>> +	help
> >>> +	  Select this to get a clocksource based on the Atmel Periodic Interval
> >>> +	  Timer. It has a relatively low resolution and the TC Block clocksource
> >>> +	  should be preferred.
> >>> +	  It also provides a clock event device.  
> >>
> >> Please conform to the format:
> >>
> >> config ATMEL_PIT
> >> 	bool "Atmel Periodic Interval Timer (PIT)" if COMPILE_TEST
> >> 	select ...
> >> 	help
> >> 	    bla bla
> >>
> >> and select ATMEL_PIT from the platform's Kconfig.
> >>  
> > 
> > Well, the goal is actually to allow people to unselect it so we don't
> > want the platform to select it.  
> 
> Why do you need people to unselect it?

Because we have 2 possible clocksource for atmel platforms: the PIT or
the TCB, if the TCB is selected there's no point in compiling the PIT
driver.

> 
> The goal of the Kconfig here is to be silent except in the case the
> COMPILE_TEST option is set for cross-compilation test coverage.
> 
> We are migrating all these options to this format. Please make it silent.
> 
> 

  reply	other threads:[~2018-01-08  8:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-05 14:30 [PATCH v2 0/6] clocksource: rework Atmel TCB timer driver Alexandre Belloni
2018-01-05 14:30 ` [PATCH v2 1/6] ARM: at91: add TCB registers definitions Alexandre Belloni
2018-01-07 11:59   ` Philippe Ombredanne
2018-01-05 14:30 ` [PATCH v2 2/6] clocksource/drivers: Add a new driver for the Atmel ARM TC blocks Alexandre Belloni
2018-01-05 14:30 ` [PATCH v2 3/6] clocksource/drivers: atmel-pit: allow unselecting ATMEL_PIT Alexandre Belloni
2018-01-07 18:07   ` Daniel Lezcano
2018-01-07 18:44     ` Alexandre Belloni
2018-01-08  7:23       ` Daniel Lezcano
2018-01-08  8:22         ` Boris Brezillon [this message]
2018-01-08  8:53           ` Daniel Lezcano
2018-01-05 14:30 ` [PATCH v2 4/6] ARM: configs: at91: use new TCB timer driver Alexandre Belloni
2018-01-05 14:30 ` [PATCH v2 5/6] ARM: configs: at91: sama5: unselect ATMEL_PIT Alexandre Belloni
2018-01-05 14:30 ` [PATCH v2 6/6] ARM: configs: at91: at91_dt " Alexandre Belloni

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=20180108092255.7e0f9f07@bbrezillon \
    --to=boris.brezillon@free-electrons.com \
    --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 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).