From: mturquette@linaro.org (Mike Turquette)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/2] clk: divider: prepare for minimum divider
Date: Wed, 23 Jan 2013 13:40:53 -0800 [thread overview]
Message-ID: <20130123214053.9205.49804@quantum> (raw)
In-Reply-To: <6dc1c48cac5b2646a55da3079afb72f88e40c3bc.1358937138.git.afzal@ti.com>
Quoting Afzal Mohammed (2013-01-23 03:38:52)
> Some of clocks can have a limit on minimum divider value that can be
> programmed, prepare for such a support.
>
> Add a new field min_div for the basic divider clock and a new dynamic
> clock divider registration function where minimum divider value can
> be specified. Keep behaviour of existing divider clock registration
> functions, static initialization helpers as was earlier.
>
> Signed-off-by: Afzal Mohammed <afzal@ti.com>
Hi Afzal,
I'd like to understand this a bit better. At first the need for a
minimum divider makes a lot of sense, but I want to make sure it gets
designed correctly.
My first question is whether the minimum divider you plan to use is an
actual constraint of the hardware (e.g. the clock controller ip only
lets program two bits which divide by 4, 5, 6 or 7, where 4 is the
minimum divider) or if this is a functional constraint (e.g. the clock
hardware can divide by a lower value, but you never want that since it
results in non-functional video/audio/whatever). If this is more of a
functional constraint then perhaps a new api like clk_set_min_rate makes
more sense.
Secondly, have you looked into using the rate-table option provided by
the basic divider clock? Can you explain how this is not a good fit for
your needs? Perhaps there are too many divisor values so the table
would be large?
Thanks,
Mike
next prev parent reply other threads:[~2013-01-23 21:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-23 11:38 [PATCH v2 1/2] clk: divider: prepare for minimum divider Afzal Mohammed
2013-01-23 11:39 ` [PATCH v2 2/2] clk: divider: handle " Afzal Mohammed
2013-01-23 21:40 ` Mike Turquette [this message]
2013-01-24 11:29 ` [PATCH v2 1/2] clk: divider: prepare for " Mohammed, Afzal
2013-01-24 17:06 ` Mike Turquette
2013-01-25 12:06 ` Mohammed, Afzal
2013-01-25 22:35 ` Mike Turquette
2013-01-28 9:18 ` Mohammed, Afzal
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=20130123214053.9205.49804@quantum \
--to=mturquette@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).