linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: amit.kucheria@linaro.org (Amit Kucheria)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 2/6] Documentation: common clk API
Date: Thu, 5 Jan 2012 16:31:05 +0200	[thread overview]
Message-ID: <20120105143105.GA2865@matterhorn1> (raw)
In-Reply-To: <1323834838-2206-3-git-send-email-mturquette@linaro.org>

Tiny, tiny typo...

On 11 Dec 13, Mike Turquette wrote:

> +clk_set_rate deserves a special mention because it is more complex than
> +the other operations.  There are three key concepts to the common
> +clk_set_rate implementation:
> +
> +1) recursively traversing up the clk tree and changing clk rates, one
> +parent at a time, if each clk allows it
> +2) failing to change rate if the clk is enabled and must only change
> +rates while disabled
> +3) using clk rate change notifiers to allow devices to handle dynamic
> +rate changes for clks which do support changing rates while enabled
> +
> +For the simple, non-recursive case the call graph looks like:
> +
> +clk_set_rate(clk, rate);
> +	__clk_set_rate(clk, rate);
> +		clk->round_rate(clk, rate *parent_rate);
                                      ^^^^^^^^

need a comma here? The next sentence kept me busy for 5 mins.

> +		clk->set_rate(clk, rate);
> +
> +You might be wondering what that third paramater in .round_rate is.  If
> +a clk supports the CLK_PARENT_SET_RATE flag then that enables it's
> +hardware-specific .round_rate function to provide a new rate that the
> +parent should transition to.  For example, imagine a rate-adjustable clk
> +A that is the parent of clk B, which has a fixed divider of 2.

  reply	other threads:[~2012-01-05 14:31 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-14  3:53 [PATCH v4 0/6] common clk framework Mike Turquette
2011-12-14  3:53 ` [PATCH v4 1/6] clk: Kconfig: add entry for HAVE_CLK_PREPARE Mike Turquette
2011-12-14  3:53 ` [PATCH v4 2/6] Documentation: common clk API Mike Turquette
2012-01-05 14:31   ` Amit Kucheria [this message]
2012-01-05 20:04     ` Turquette, Mike
2011-12-14  3:53 ` [PATCH v4 3/6] clk: introduce the common clock framework Mike Turquette
2011-12-14  4:52   ` Ryan Mallon
2011-12-14 19:07     ` Turquette, Mike
2011-12-14  7:50   ` Richard Zhao
2011-12-14 13:18   ` Thomas Gleixner
2011-12-17  0:45     ` Turquette, Mike
2011-12-17 11:04       ` Russell King - ARM Linux
2012-01-14  4:18         ` Saravana Kannan
2012-01-14  4:39           ` Turquette, Mike
2012-01-14  4:51             ` Saravana Kannan
2012-01-04  2:15       ` Richard Zhao
2012-01-04 14:32         ` Rob Herring
2012-01-05  1:01           ` Turquette, Mike
2012-01-05  1:23             ` Richard Zhao
2012-01-05  2:11             ` Rob Herring
2012-01-05  4:07               ` Turquette, Mike
2012-01-12 13:13                 ` Amit Kucheria
2012-01-13  0:04                 ` Saravana Kannan
2012-01-13  0:48                   ` Rob Herring
2012-01-13  1:19                     ` Saravana Kannan
2012-01-13 14:53                   ` Shawn Guo
2011-12-14  3:53 ` [PATCH v4 4/6] clk: introduce rate change notifiers Mike Turquette
2011-12-14  3:53 ` [PATCH v4 5/6] clk: basic gateable and fixed-rate clks Mike Turquette
2011-12-14  5:15   ` Ryan Mallon
2011-12-17  0:57     ` Turquette, Mike
2011-12-14  3:53 ` [PATCH v4 6/6] clk: export the clk tree topology to debugfs Mike Turquette
2011-12-14  4:02 ` [PATCH v4 0/6] common clk framework Turquette, Mike

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=20120105143105.GA2865@matterhorn1 \
    --to=amit.kucheria@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).