From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Paul Walmsley <paul@pwsan.com>
Cc: linux-arm-kernel@lists.arm.linux.org.uk,
linux-omap@vger.kernel.org, Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH 04/10] ARM: OMAP2: Remove OMAP_PRM_REGADDR, OMAP_CM_REGADDR
Date: Mon, 27 Oct 2008 20:59:36 +0000 [thread overview]
Message-ID: <20081027205936.GP4283@flint.arm.linux.org.uk> (raw)
In-Reply-To: <alpine.DEB.2.00.0810070729300.9923@utopia.booyaka.com>
On Tue, Oct 07, 2008 at 08:12:11AM -0600, Paul Walmsley wrote:
> Hello Russell,
>
> On Tue, 7 Oct 2008, Russell King - ARM Linux wrote:
>
> > One thing I've noticed, however, is that there seem to be clocks which
> > result in omap2_clk_wait_ready() being called, which checks the "other"
> > F or I clock register, but there's no corresponding clock defined in
> > the source for that bit. Eg, iva1_ifck in clock24xx.h. What does it
> > mean?
>
> Bug. (Harmless, but a bug nonetheless.) It's fixed in the current
> linux-omap head. Those patches are scheduled for a future merge window,
> but would be pleased to send those sooner if you like.
Right, now that I have one of my OMAP3 platforms sort-of up and running,
I can start checking out some ideas.
I've taken the easy way out of modifying all the struct clk structures for
the time being, and thrown some code at initialization time to take the
information already there and manipulate it to the new structure. This
includes working out the associations between the 'ick' and 'fck' clocks.
On OMAP3430 ES2.2, 2.6.28-rc2, I tripped over these:
CLK: no clock to associate dpll3_m3x2_ck.0 with
CLK: no clock to associate dpll4_m2x2_ck.0 with
CLK: no clock to associate dpll4_m3x2_ck.0 with
CLK: no clock to associate dpll4_m4x2_ck.0 with
CLK: no clock to associate dpll4_m5x2_ck.0 with
CLK: no clock to associate dpll4_m6x2_ck.0 with
CLK: no clock to associate iva2_ck.0 with
CLK: no clock to associate hsotgusb_ick.0 with
CLK: no clock to associate sdrc_ick.0 with
CLK: no clock to associate pka_ick.0 with
CLK: no clock to associate icr_ick.0 with
CLK: no clock to associate aes2_ick.0 with
CLK: no clock to associate sha12_ick.0 with
CLK: no clock to associate des2_ick.0 with
CLK: no clock to associate mailboxes_ick.0 with
CLK: no clock to associate omapctrl_ick.0 with
CLK: no clock to associate aes1_ick.0 with
CLK: no clock to associate rng_ick.0 with
CLK: no clock to associate sha11_ick.0 with
CLK: no clock to associate usbhost_120m_fck.0 with
CLK: no clock to associate wdt1_ick.0 with
CLK: no clock to associate omap_32ksync_ick.0 with
CLK: no clock to associate gpt12_ick.0 with
CLK: no clock to associate sr1_fck.0 with
CLK: no clock to associate sr2_fck.0 with
which all don't have a corresponding clock for their "other" [if]ck.
If I take this further, and detect clocks which result in
omap2_clk_wait_ready() being called, but we don't have a corresponding
[if]ck, I see at least these four warnings:
CLK: omapctrl_ick.0: no other_clk but asked to wait_ready
CLK: sdrc_ick.0: no other_clk but asked to wait_ready
CLK: dpll4_m2x2_ck.0: no other_clk but asked to wait_ready
CLK: omap_32ksync_ick.0: no other_clk but asked to wait_ready
So, presumably these ick clocks don't have corresponding fck clocks,
which means checking the fck register for the bit would be wrong?
So, here's the question: should any of the above clocks result in
omap2_wait_clock_ready() being called? If the answer is no, that's
great. If yes, are there missing clk structures for OMAP3?
next prev parent reply other threads:[~2008-10-27 21:00 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-02 16:37 [PATCH 00/10] OMAP clock updates for post 2.6.27 Paul Walmsley
2008-10-02 16:37 ` [PATCH 01/10] ARM: OMAP2: Add non-CORE DPLL rate set code and M, N programming Paul Walmsley
2008-10-02 16:37 ` [PATCH 02/10] ARM: OMAP: Fix sparse, checkpatch warnings in OMAP2/3 PRCM/PM code Paul Walmsley
2008-10-04 13:19 ` Russell King - ARM Linux
2008-10-06 14:52 ` Paul Walmsley
2008-10-06 15:09 ` Russell King - ARM Linux
2008-10-06 15:13 ` Paul Walmsley
2008-10-02 16:37 ` [PATCH 03/10] ARM: OMAP: Clock tree updates for OMAP2/3 Paul Walmsley
2008-10-02 16:37 ` [PATCH 05/10] ARM: OMAP2: Implement CPUfreq frequency table based on PRCM table Paul Walmsley
2008-10-02 16:37 ` [PATCH 04/10] ARM: OMAP2: Remove OMAP_PRM_REGADDR, OMAP_CM_REGADDR Paul Walmsley
2008-10-06 16:18 ` Russell King - ARM Linux
2008-10-06 23:39 ` Russell King - ARM Linux
2008-10-07 14:12 ` Paul Walmsley
2008-10-27 20:59 ` Russell King - ARM Linux [this message]
2008-11-06 13:15 ` Paul Walmsley
2008-10-07 12:54 ` Paul Walmsley
2008-10-02 16:37 ` [PATCH 06/10] OMAP2/3 clock: combine clkdm, clkdm_name into union in struct clk Paul Walmsley
2008-10-02 16:37 ` [PATCH 07/10] OMAP2/3 clockdomains: combine pwrdm, pwrdm_name into union in struct clockdomain Paul Walmsley
2008-10-02 16:37 ` [PATCH 09/10] OMAP3 PRCM: add DPLL1-5 powerdomains, clockdomains; mark clocks Paul Walmsley
2008-10-02 16:37 ` [PATCH 08/10] OMAP2/3 clockdomains: add CM, PRM, virt_opp_clkdm clockdomains Paul Walmsley
2008-10-02 16:37 ` [PATCH 10/10] OMAP2/3 clock: add clockdomains to all remaining clocks; remove superfluous init Paul Walmsley
2008-10-02 20:17 ` [PATCH 00/10] OMAP clock updates for post 2.6.27 Russell King - ARM Linux
2008-10-03 6:38 ` Tony Lindgren
2008-10-06 14:48 ` Paul Walmsley
2008-10-06 15:12 ` Russell King - ARM Linux
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=20081027205936.GP4283@flint.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=tony@atomide.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