From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v3 06/15] ARM: shmobile: koelsch-reference: Initialize CPG device
Date: Thu, 28 Nov 2013 17:17:24 +0000 [thread overview]
Message-ID: <1547213.UeNFalLoQB@avalon> (raw)
In-Reply-To: <1385600632-5181-7-git-send-email-laurent.pinchart+renesas@ideasonboard.com>
Hi Magnus,
On Thursday 28 November 2013 14:32:18 Magnus Damm wrote:
> On Thu, Nov 28, 2013 at 10:03 AM, Laurent Pinchart wrote:
> > On multiplatform kernels clocks are handled by the CCF CPG driver. It
> > must be explicitly initialized by a call to rcar_gen2_clocks_init() with
> > the value of the boot mode pins.
> >
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
>
> Hi Laurent,
>
> Thanks for your efforts. I think this series looks very nice in
> general. Please see below for two questions.
>
> > --- a/arch/arm/mach-shmobile/board-koelsch-reference.c
> > +++ b/arch/arm/mach-shmobile/board-koelsch-reference.c
> > @@ -46,7 +52,7 @@ static const char * const koelsch_boards_compat_dt[]
> > __initconst = {>
> > DT_MACHINE_START(KOELSCH_DT, "koelsch")
> >
> > .smp = smp_ops(r8a7791_smp_ops),
> > .init_early = r8a7791_init_early,
> >
> > - .init_time = rcar_gen2_timer_init,
> > + .init_time = koelsch_init_time,
> >
> > .init_machine = koelsch_add_standard_devices,
> > .init_late = shmobile_init_late,
> > .dt_compat = koelsch_boards_compat_dt,
>
> What is the reason that you need to initialize CCF at ->init_time()?
> We used to initialize timers early in the legacy board case but for DT
> we've so far been able to initialize timers late. Is it really time to
> go back again? =)
rcar_gen2_timer_init() calls clocksource_of_init(), and our clocksource
devices need clocks, so CCF needs to be initialized before that.
> As for initializing the CCF, if we go down the route of early CCF
> init, can't you put your CCF init call at one shared location in for
> instance rcar_gen2_timer_init()?
That's a good idea, I will do that.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2013-11-28 17:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-28 1:03 [PATCH v3 06/15] ARM: shmobile: koelsch-reference: Initialize CPG device Laurent Pinchart
2013-11-28 5:32 ` Magnus Damm
2013-11-28 17:17 ` Laurent Pinchart [this message]
2013-11-29 1:43 ` Magnus Damm
2013-11-29 15:21 ` Laurent Pinchart
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=1547213.UeNFalLoQB@avalon \
--to=laurent.pinchart@ideasonboard.com \
--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 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.