From: Tony Lindgren <tony@atomide.com>
To: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>, Paul Walmsley <paul@pwsan.com>,
linux-omap@vger.kernel.org, Felipe Balbi <balbi@ti.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/2] ARM: OMAP2+: Change core_initcall levels to postcore_initcall
Date: Thu, 3 Dec 2015 08:41:13 -0800 [thread overview]
Message-ID: <20151203164113.GS23396@atomide.com> (raw)
In-Reply-To: <56606F20.9050805@ti.com>
* Grygorii Strashko <grygorii.strashko@ti.com> [151203 08:35]:
> On 12/03/2015 06:00 PM, Tony Lindgren wrote:
> > * Tony Lindgren <tony@atomide.com> [151130 08:29]:
> >> We want to be able to probe a few selected device drivers before hwmod
> >> code populates the clocks in omap_hwmod_setup_all(). This allows us to
> >> convert most of the clock drivers into regular device drivers.
>
> if understand things right, ti clks now will be populated and initialized
> from
> __omap_sync32k_timer_init
> - omap_clk_init()
> - ..
> - of_clk_init()
> - ..
> - omap_clk_soc_init()
>
> and __omap_sync32k_timer_init(), in turn, will be called from:
> arch/arm/kernel/time.c
> - time_init()
> machine_desc->init_time();
> (without your patch 1).
Yes that's the current approach, but we can do better. We only need the following
clocks for system timers at that point:
- mux clocks to select between the 32k and hf oscillator source
- clkctrl driver to gate the ocp clock
All the other clocks can be initialized at core_initcall time with this change.
> So, I don't see real dependency here between clk initialization and hwmods :(
You don't because it's only implemented so far for the dm814x ADPLL clock :)
That I posted as "[PATCH 0/2] Clock driver for dm814x ADPLL". Note how it's
just a regular device driver that also works as loadable module on boards that
have all the necessary clocks enabled already by the bootloader.
Regards,
Tony
next prev parent reply other threads:[~2015-12-03 16:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-30 16:26 [PATCH 0/2] Initcall changes for omaps Tony Lindgren
2015-11-30 16:26 ` [PATCH 1/2] ARM: OMAP2+: Initialize timers later with late_time_init Tony Lindgren
2015-12-01 13:52 ` Grygorii Strashko
2015-12-01 15:47 ` Tony Lindgren
2015-11-30 16:26 ` [PATCH 2/2] ARM: OMAP2+: Change core_initcall levels to postcore_initcall Tony Lindgren
2015-12-03 16:00 ` Tony Lindgren
2015-12-03 16:34 ` Grygorii Strashko
2015-12-03 16:41 ` Tony Lindgren [this message]
2015-12-03 18:08 ` Grygorii Strashko
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=20151203164113.GS23396@atomide.com \
--to=tony@atomide.com \
--cc=balbi@ti.com \
--cc=grygorii.strashko@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=t-kristo@ti.com \
/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).