All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Cc: felipe.balbi@nokia.com, linux-omap@vger.kernel.org,
	paul@pwsan.com, tony@atomide.com, khilman@deeprootsystems.com
Subject: Re: [PATCH 1/3] [RFC] clk: introduce clk_associate
Date: Thu, 2 Oct 2008 13:50:02 -0700	[thread overview]
Message-ID: <200810021350.03739.david-b@pacbell.net> (raw)
In-Reply-To: <20081001.213437.22091635.Hiroshi.DOYU@nokia.com>

On Wednesday 01 October 2008, Hiroshi DOYU wrote:
> Or, this feature itself can be covered by 'virtual clock(vclk)'?
> 
>     http://marc.info/?l=linux-omap&m=122066992729949&w=2
> 
> which means that,
> in this case, if 'vclk' just has a single child, not multiple, it can
> be used just as 'aliasing' of clock names, without touching the
> contents of 'struct clk', since 'vclk' is a inhritance of 'struct clk'.

If clk_get(dev, alias) keys on "dev", then that could seem to
be an alternate implementation strategy.  Does it?

I've not been tracking the evolution of the OMAP clock tree
code, but the treatment of "dev" seems quite indirect.  It
doesn't seem possible, for example, to stick a programmable
clock onto a non-platform device ... even when that's the
relevant input to, for example, some external CODEC.


> I think that the point here is how to __hide__ the real detail clock
> information(names, numbers, functionalites and so on) from client
> device drivers.

That's one way to look at it.  Hiding is not the requirement
though; I have no problem if they can see that information.
(Not that the clock interfaces support querying by any scheme
more intelligent than looking up all possible names!)

The requirement is instead to provide a portable "logical" view
of the clock tree ... it doesn't matter if a "physical" view is
available too, or even that both models exist.


> Some driver may need to control multiple clocks at 
> once. Some may need a clock which has different names between omap1,
> omap2/3 or target boards. Or some may need to control multiple clock
> groups from the functional perspective. So I think that a *flexible*
> infrastructure would be better to afford such requiments, keeping
> 'struct clk' as simple as possible.

That vclk stuff looked a bit less obvious than I like.
Maybe I just haven't seen the need for those particular
flavors of flexibility.

- Dave
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2008-10-02 20:50 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01 10:36 [PATCH 0/3] [RFC] introduce clk_associate Felipe Balbi
2008-10-01 10:36 ` [PATCH 1/3] [RFC] clk: " Felipe Balbi
2008-10-01 10:36   ` [PATCH 2/3] [RFC] clk: use clk_associate for musb driver Felipe Balbi
2008-10-01 10:36     ` [PATCH 3/3] [RFC] clk: use clk_associate on watchdog driver Felipe Balbi
2008-10-01 15:51   ` [PATCH 1/3] [RFC] clk: introduce clk_associate David Brownell
2008-10-01 15:57     ` Felipe Balbi
2008-10-01 16:15       ` David Brownell
2008-10-01 18:34         ` Hiroshi DOYU
2008-10-02 20:50           ` David Brownell [this message]
2008-10-02 21:33             ` Felipe Balbi
2008-10-03  6:23             ` Hiroshi DOYU
2008-10-03  7:30               ` Tony Lindgren
2008-10-06 18:42               ` David Brownell
2008-10-06 18:53                 ` Felipe Balbi
2008-10-14 16:33           ` Paul Walmsley
2008-10-14 20:19             ` Hiroshi DOYU
2008-10-15  9:13               ` Paul Walmsley
2008-10-15 10:15                 ` Hiroshi DOYU
2008-10-15 22:41             ` Woodruff, Richard

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=200810021350.03739.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=Hiroshi.DOYU@nokia.com \
    --cc=felipe.balbi@nokia.com \
    --cc=khilman@deeprootsystems.com \
    --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 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.