From: tomi.valkeinen@ti.com (Tomi Valkeinen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM: OMAP2+: fix dpll round_rate() to actually round
Date: Mon, 12 May 2014 15:11:46 +0300 [thread overview]
Message-ID: <5370BA82.8030703@ti.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1405072210360.23579@utopia.booyaka.com>
On 08/05/14 01:16, Paul Walmsley wrote:
>> It's true that the original patch changes the dpll behavior when an
>> exact match is not found. However, I think our drivers always request an
>> exact match, and in that case the original patch doesn't change the
>> behavior in practice.
>>
>> In theory it's possible that a driver requests a non-exact clock from
>> the dpll, and when it gets an error, it does something else.
>
> The path that worries me at the moment is the set-rate path. That calls
> __clk_round_rate() (if the user hasn't called it already) and silently
> tries to set the clock to the altered rate.
Hmm, so you mean a driver could call set_rate, and presume it only uses
exact rates the dpll can produce, and presumes that set_rate returns an
error if the dpll cannot produce the requested rate?
Isn't that what I said? If a driver has such behavior, I think it still
doesn't work, as (correct me if I'm wrong) we always have the
clk-divider after a dpll. And the clk-divider doesn't handle the error,
so neither can the driver.
Or what kind of scenario do you have in mind?
Tomi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140512/97da8289/attachment.sig>
prev parent reply other threads:[~2014-05-12 12:11 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-17 7:44 [PATCH 0/2] ARM: OMAP2+: Fix dpll rounding Tomi Valkeinen
2014-01-17 7:44 ` [PATCH 1/2] ARM: OMAP2+: fix rate prints Tomi Valkeinen
2014-02-19 19:25 ` Paul Walmsley
2014-01-17 7:44 ` [PATCH 2/2] ARM: OMAP2+: fix dpll round_rate() to actually round Tomi Valkeinen
2014-02-13 23:00 ` Tony Lindgren
2014-02-14 13:32 ` Tero Kristo
2014-02-19 19:49 ` Paul Walmsley
2014-02-20 19:30 ` Paul Walmsley
2014-02-26 11:48 ` Tomi Valkeinen
2014-03-05 13:50 ` Tomi Valkeinen
2014-04-30 15:38 ` Felipe Balbi
2014-04-30 15:40 ` Nishanth Menon
2014-02-26 11:42 ` Tomi Valkeinen
2014-04-24 18:34 ` Felipe Balbi
2014-04-24 18:29 ` Felipe Balbi
2014-04-24 18:44 ` Tony Lindgren
2014-04-29 15:51 ` Felipe Balbi
2014-04-29 16:27 ` Tomi Valkeinen
2014-05-07 22:16 ` Paul Walmsley
2014-05-12 12:11 ` Tomi Valkeinen [this message]
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=5370BA82.8030703@ti.com \
--to=tomi.valkeinen@ti.com \
--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).