From: Kevin Hilman <khilman@ti.com>
To: Vaibhav Hiremath <hvaibhav@ti.com>
Cc: linux-omap@vger.kernel.org, tony@atomide.com, paul@pwsan.com,
santosh.shilimkar@ti.com, b-cousson@ti.com,
linux-arm-kernel@lists.infradead.org, Felipe Balbi <balbi@ti.com>,
Tarun Kanti DebBarma <tarun.kanti@ti.com>,
Ming Lei <tom.leiming@gmail.com>
Subject: Re: [PATCH-V4 3/3] ARM: OMAP: Make OMAP clocksource source selection using kernel param
Date: Thu, 26 Apr 2012 11:33:16 -0700 [thread overview]
Message-ID: <87aa1ybaxf.fsf@ti.com> (raw)
In-Reply-To: <1335260749-25877-4-git-send-email-hvaibhav@ti.com> (Vaibhav Hiremath's message of "Tue, 24 Apr 2012 15:15:49 +0530")
Vaibhav Hiremath <hvaibhav@ti.com> writes:
> Current OMAP code supports couple of clocksource options based
> on compilation flag (CONFIG_OMAP_32K_TIMER). The 32KHz sync-timer
> and a gptimer which can run on 32KHz or system clock (e.g 38.4 MHz).
[...]
> +
> + sync32k_ick = clk_get(NULL, "omap_32ksync_ick");
> + if (!IS_ERR(sync32k_ick))
> + clk_enable(sync32k_ick);
> +
> + sync32k_cnt_reg = base + OMAP2_32KSYNCNT_CR_OFF;
> +
> + /*
> + * 120000 rough estimate from the calculations in
> + * __clocksource_updatefreq_scale.
> + */
> + clocks_calc_mult_shift(&persistent_mult, &persistent_shift,
> + 32768, NSEC_PER_SEC, 120000);
> +
> + ret = clocksource_mmio_init(base, "32k_counter", 32768, 250, 32,
> + clocksource_mmio_readl_up);
After discussing this a bit with Vaibhav offline, we found that 'base'
here should be sync32k_cnt_reg.
Can you guys that were seeing the hang confirm that that fixes the
issue?
If so, please reply with your Tested-by.
Thanks,
Kevin
next prev parent reply other threads:[~2012-04-26 18:33 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-24 9:45 [PATCH-V4 0/3] ARM: OMAP: Make OMAP clocksource source selection runtime Vaibhav Hiremath
2012-04-24 9:45 ` [PATCH-V4 1/3] ARM: OMAP2/3: Add idle_st bits for ST_32KSYNC timer to prcm-common header Vaibhav Hiremath
2012-04-24 9:45 ` [PATCH-V4 2/3] ARM: OMAP2/3: hwmod data: Add 32k-sync timer data to hwmod database Vaibhav Hiremath
2012-04-24 9:45 ` [PATCH-V4 3/3] ARM: OMAP: Make OMAP clocksource source selection using kernel param Vaibhav Hiremath
2012-04-24 16:20 ` Tony Lindgren
2012-04-25 8:40 ` Hiremath, Vaibhav
2012-04-26 4:36 ` Russ Dill
2012-04-26 5:42 ` Hiremath, Vaibhav
2012-04-26 5:56 ` Russ Dill
2012-04-26 6:23 ` Hiremath, Vaibhav
2012-04-26 7:45 ` Russ Dill
2012-04-26 13:46 ` Hiremath, Vaibhav
2012-04-26 15:58 ` Jon Hunter
2012-04-26 16:20 ` Hiremath, Vaibhav
2012-04-26 18:33 ` Kevin Hilman [this message]
2012-04-26 19:47 ` Kevin Hilman
2012-04-26 20:43 ` Russ Dill
2012-04-27 8:37 ` Hiremath, Vaibhav
2012-04-24 10:06 ` [PATCH-V4 0/3] ARM: OMAP: Make OMAP clocksource source selection runtime Shilimkar, Santosh
2012-04-24 10:33 ` Hiremath, Vaibhav
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=87aa1ybaxf.fsf@ti.com \
--to=khilman@ti.com \
--cc=b-cousson@ti.com \
--cc=balbi@ti.com \
--cc=hvaibhav@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=santosh.shilimkar@ti.com \
--cc=tarun.kanti@ti.com \
--cc=tom.leiming@gmail.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