SUPERH platform development
 help / color / mirror / Atom feed
From: Simon Horman <horms@verge.net.au>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] ARM: shmobile: rcar-gen2: CONFIG_ARM_ARCH_TIMER is always set
Date: Wed, 08 Jul 2015 02:05:15 +0000	[thread overview]
Message-ID: <20150708020511.GB14992@verge.net.au> (raw)
In-Reply-To: <1436277927-20159-1-git-send-email-geert+renesas@glider.be>

Hi Magnus,

On Wed, Jul 08, 2015 at 10:40:18AM +0900, Magnus Damm wrote:
> Hi Simon,
> 
> On Wed, Jul 8, 2015 at 10:16 AM, Simon Horman <horms@verge.net.au> wrote:
> > On Wed, Jul 08, 2015 at 12:34:47AM +0900, Magnus Damm wrote:
> >> Hi Geert,
> >>
> >> On Wed, Jul 8, 2015 at 12:21 AM, Geert Uytterhoeven
> >> <geert@linux-m68k.org> wrote:
> >> > Hi Magnus,
> >> >

[snip]

> >> > HAVE_ARM_ARCH_TIMER used to be user-selectable, but your patch
> >> > "ARM: shmobile: Select HAVE_ARM_ARCH_TIMER from Kconfig" made that
> >> > unconditional for R-Car Gen2 and APE6 ;-)
> >>
> >> Ouch - my bad! That's not at all what I intended to do.
> >>
> >> I only wanted to express that R-Car Gen2 and APE6 come with arch timer
> >> hardware, and in such case the user shall be able to select it. If
> >> R-Car Gen2 or APE6 isn't selected then there is no point in exposing
> >> such choice to the user. But obviously that wasn't what I ended up
> >> doing...
> >>
> >> What would be a sane way to approach this? I think always enabling it
> >> may not work for CA7-based SoCs from Renesas that at least used to
> >> have setup issues with arch timer...
> >
> > Given the current arrangement in arch/arm/Kconfig:
> >
> > config HAVE_ARM_ARCH_TIMER
> >         bool "Architected timer support"
> >         depends on CPU_V7
> >         select ARM_ARCH_TIMER
> >         select GENERIC_CLOCKEVENTS
> >         help
> >           This option enables support for the ARM architected timer
> >
> > It seems to me that a good solution would be to (go back to?)
> > * not selecting HAVE_ARM_ARCH_TIMER in arch/arm/mach-shmobile/Kconfig and;
> > * enabling HAVE_ARM_ARCH_TIMER in defconfigs as appropriate
> 
> That is one idea for sure.
> 
> > Perhaps that can be achieved by dropping/reverting
> > * 731bde02f622 ARM: shmobile: Select HAVE_ARM_ARCH_TIMER from Kconfig
> > * b46ddcdf484c ARM: shmobile: Drop HAVE_ARM_ARCH_TIMER from defconfig
> >
> > At this stage I have not sent pull-requests for the above so I would
> > be feasible for me to simply drop them if we agree on that.
> 
> >From my side simply dropping seems the easiest way forward.

Me too.
Lets sit on this for a day or so and see what Geert and others have to say.

> This reminds me of the good old "generating kernel configuration from
> DT", so in the future if we may be able to do so then that could
> perhaps that shmobile_defconfig bit for us.

:)

> > FWIW, I assumed that your patch would achieve its goal.  The arrangement of
> > HAVE_ARM_ARCH_TIMER and ARM_ARCH_TIMER seems entirely intuitive to me. But
> > I'm reluctant to advise opening that Pandora's box.
> 
> Completely agree, but from my side you need to s/intuitive/counter
> intuitive/g. =)

Yes, sorry for that editing error.

  parent reply	other threads:[~2015-07-08  2:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-07 14:05 [PATCH] ARM: shmobile: rcar-gen2: CONFIG_ARM_ARCH_TIMER is always set Geert Uytterhoeven
2015-07-07 15:17 ` Magnus Damm
2015-07-07 15:21 ` Geert Uytterhoeven
2015-07-07 15:34 ` Magnus Damm
2015-07-08  1:16 ` Simon Horman
2015-07-08  1:40 ` Magnus Damm
2015-07-08  2:05 ` Simon Horman [this message]
2015-07-08  6:56 ` Geert Uytterhoeven
2015-07-10  4:26 ` Simon Horman
2015-07-13  1:23 ` Simon Horman
2015-07-13  5:20 ` Magnus Damm
2015-07-14 10:28 ` Magnus Damm

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=20150708020511.GB14992@verge.net.au \
    --to=horms@verge.net.au \
    --cc=linux-sh@vger.kernel.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