All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH 2/8] OMAP: hwmod: warn on missing clockdomain
Date: Wed, 18 Nov 2009 07:03:34 -0800	[thread overview]
Message-ID: <878we3euyh.fsf@deeprootsystems.com> (raw)
In-Reply-To: <alpine.DEB.2.00.0911180404050.25515@utopia.booyaka.com> (Paul Walmsley's message of "Wed\, 18 Nov 2009 04\:07\:23 -0700 \(MST\)")

Paul Walmsley <paul@pwsan.com> writes:

> Hi Kevin
>
> On Tue, 17 Nov 2009, Kevin Hilman wrote:
>
>> WARN if a clock/hwmod is missing a clockdomain association since
>> resulting hwmod will not be able to correctly enable/disable clocks.
>
> Wouldn't this check be best placed in the clock code?  

Possibly.  The idea here was to flag an issue that will prevent the
hwmod code from crashing.

Doing something like below in the clock code may be the right
place, but it creates lots of noise that didn't help debug the hwmod
problem.

clock omap_32k_fck is missing clockdomain
clock virt_12m_ck is missing clockdomain
clock virt_13m_ck is missing clockdomain
clock virt_16_8m_ck is missing clockdomain
clock virt_19_2m_ck is missing clockdomain
clock virt_26m_ck is missing clockdomain
clock virt_38_4m_ck is missing clockdomain
clock osc_sys_ck is missing clockdomain
clock sys_ck is missing clockdomain
clock sys_altclk is missing clockdomain
clock mcbsp_clks is missing clockdomain
clock sys_clkout1 is missing clockdomain
clock core_ck is missing clockdomain
clock omap_96m_alwon_fck is missing clockdomain
clock omap_96m_fck is missing clockdomain
clock cm_96m_fck is missing clockdomain
clock omap_54m_fck is missing clockdomain
clock omap_48m_fck is missing clockdomain
clock omap_12m_fck is missing clockdomain
clock sys_clkout2 is missing clockdomain
clock corex2_fck is missing clockdomain
clock dpll1_fck is missing clockdomain
clock emu_mpu_alwon_ck is missing clockdomain
clock dpll2_fck is missing clockdomain
clock rm_ick is missing clockdomain
clock cpefuse_fck is missing clockdomain
clock ts_fck is missing clockdomain
clock usbtll_fck is missing clockdomain
clock mcspi_fck is missing clockdomain
clock mcspi_fck is missing clockdomain
clock mcspi_fck is missing clockdomain
clock mcspi_fck is missing clockdomain
clock hdq_fck is missing clockdomain
clock ssi_sst_fck is missing clockdomain
clock security_l3_ick is missing clockdomain
clock pka_ick is missing clockdomain
clock omapctrl_ick is missing clockdomain
clock security_l4_ick2 is missing clockdomain
clock aes1_ick is missing clockdomain
clock rng_ick is missing clockdomain
clock sha11_ick is missing clockdomain
clock des1_ick is missing clockdomain
clock usim_fck is missing clockdomain
clock sr1_fck is missing clockdomain
clock sr2_fck is missing clockdomain
clock secure_32k_fck is missing clockdomain
clock gpt12_fck is missing clockdomain
clock wdt1_fck is missing clockdomain

diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c
index 4716206..9022858 100644
--- a/arch/arm/mach-omap2/clock.c
+++ b/arch/arm/mach-omap2/clock.c
@@ -153,8 +153,10 @@ void omap2_init_clk_clkdm(struct clk *clk)
 {
 	struct clockdomain *clkdm;
 
-	if (!clk->clkdm_name)
+	if (!clk->clkdm_name) {
+		pr_debug("clock %s is missing clockdomain\n", clk->name);
 		return;
+	}
 
 	clkdm = clkdm_lookup(clk->clkdm_name);
 	if (clkdm) {
k

  reply	other threads:[~2009-11-18 15:03 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-18  1:05 [PATCH 0/8] omap_hwmod/omap_device prep work Kevin Hilman
2009-11-18  1:05 ` [PATCH 1/8] OMAP3: clock: add clockdomains for UART1 & 2 Kevin Hilman
2009-11-18  1:05   ` [PATCH 2/8] OMAP: hwmod: warn on missing clockdomain Kevin Hilman
2009-11-18  1:05     ` [PATCH 3/8] OMAP3 hwmod: Add automatic OCP_SYSCONFIG AUTOIDLE handling Kevin Hilman
2009-11-18  1:05       ` [PATCH 4/8] OMAP: omap_device: deactivate latency typo Kevin Hilman
2009-11-18  1:05         ` [PATCH 5/8] OMAP: omap_device: add usecounting Kevin Hilman
2009-11-18  1:05           ` [PATCH 6/8] OMAP: omap_device: use read_persistent_clock() instead of getnstimeofday() Kevin Hilman
2009-11-18  1:05             ` [PATCH 7/8] OMAP: omap_device: warn about expected latencies only if non-zero Kevin Hilman
2009-11-18  1:05               ` [PATCH 8/8] OMAP: omap_device: use UINT_MAX for default wakeup latency limit Kevin Hilman
2009-11-18 10:57                 ` Paul Walmsley
2009-11-18 11:19               ` [PATCH 7/8] OMAP: omap_device: warn about expected latencies only if non-zero Paul Walmsley
2009-11-19 19:08                 ` Kevin Hilman
2009-11-18 11:00             ` [PATCH 6/8] OMAP: omap_device: use read_persistent_clock() instead of getnstimeofday() Paul Walmsley
2009-11-18 10:51           ` [PATCH 5/8] OMAP: omap_device: add usecounting Paul Walmsley
2009-11-18 14:33             ` Kevin Hilman
2009-11-24 18:13             ` Kevin Hilman
2009-11-18 10:54         ` [PATCH 4/8] OMAP: omap_device: deactivate latency typo Paul Walmsley
2009-11-18 14:39           ` Kevin Hilman
2009-11-18  8:45       ` [PATCH 3/8] OMAP3 hwmod: Add automatic OCP_SYSCONFIG AUTOIDLE handling Vimal Singh
2009-11-18 10:01         ` Paul Walmsley
2009-11-18 18:37           ` Kevin Hilman
2009-11-18 19:02             ` Paul Walmsley
2009-11-18 10:55       ` Paul Walmsley
2009-11-18 11:07     ` [PATCH 2/8] OMAP: hwmod: warn on missing clockdomain Paul Walmsley
2009-11-18 15:03       ` Kevin Hilman [this message]
2009-12-03 12:11         ` Paul Walmsley
2009-11-18 10:58   ` [PATCH 1/8] OMAP3: clock: add clockdomains for UART1 & 2 Paul Walmsley
2009-12-18  2:32     ` Paul Walmsley

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=878we3euyh.fsf@deeprootsystems.com \
    --to=khilman@deeprootsystems.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.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 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.