From: Felipe Balbi <felipe.balbi@nokia.com>
To: ext Kevin Hilman <khilman@deeprootsystems.com>
Cc: "Balbi Felipe (Nokia-D/Helsinki)" <felipe.balbi@nokia.com>,
Linux OMAP Mailing List <linux-omap@vger.kernel.org>,
Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH] arm: omap1/2/3/4: convert clocksource to a platform_driver
Date: Tue, 6 Apr 2010 09:38:28 +0300 [thread overview]
Message-ID: <20100406063828.GP16297@nokia.com> (raw)
In-Reply-To: <87aathse2b.fsf@deeprootsystems.com>
Hi,
On Tue, Apr 06, 2010 at 12:57:16AM +0200, ext Kevin Hilman wrote:
>What' you've created is not a generic clocksource driver but one that
>can only work with the 32k sync timer.
so I achieved my goal, which was to convert *32k-sync timer* into a
platform_driver.
>If you're going to create a generic driver, it should be generic
>enough to work with any timer source: 32k, timer GP, off-chip RTC,
>etc. To do this, it would need a generic read function passed in with
>the platform_device.
yeah, I don't really see what you're trying to do. IMO we should just
register all clocksources to the kernel but it doesn't mean they have to
all come from the same platform_driver. The driver I wrote is for the
32k-sync timer, gp timers, mpu-timer they all would have to be
converted.
I really don't see the point in having all clocksources as one unique
driver since the kernel is (or should be) smart enough to choose the
best one for us at runtime.
If you really want one driver that would cope with all clocksources, be
my guest, but IMO, that's not the way to go.
>It would also need a more generic way of handling clock names and
>frequencies. Currently the clock rate is hard-coded to 32kHz.
>clk_get_rate() should be used in a generic driver.
but that's what 32k-sync timer uses, right ?
for anything else, then it would need more thinking.
--
balbi
next prev parent reply other threads:[~2010-04-06 6:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-23 12:12 [PATCH] arm: omap1/2/3/4: convert clocksource to a platform_driver Felipe Balbi
2010-03-23 12:23 ` [PATCH v2] " Felipe Balbi
2010-03-23 13:29 ` [PATCH v3] " Felipe Balbi
2010-03-23 13:42 ` [PATCH] arm: omap1/2/3/4: change sync_32k_ick to ick Felipe Balbi
2010-03-23 18:07 ` [PATCH v3] arm: omap1/2/3/4: convert clocksource to a platform_driver Kevin Hilman
2010-03-24 6:34 ` Felipe Balbi
2010-03-24 6:54 ` Felipe Balbi
2010-03-26 7:21 ` [PATCH] " Felipe Balbi
2010-04-05 22:57 ` Kevin Hilman
2010-04-06 6:38 ` Felipe Balbi [this message]
2010-04-06 14:43 ` Kevin Hilman
2010-04-06 15:26 ` Felipe Balbi
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=20100406063828.GP16297@nokia.com \
--to=felipe.balbi@nokia.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--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