From: jassisinghbrar@gmail.com (jassi brar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 09/10] S3C64XX I2S: Set parent links for clock audio-bus.
Date: Tue, 15 Sep 2009 20:42:32 +0900 [thread overview]
Message-ID: <1b68c6790909150442m5aaf826fy73a9c48bd2fabbf2@mail.gmail.com> (raw)
In-Reply-To: <20090915111204.GJ22878@rakim.wolfsonmicro.main>
On Tue, Sep 15, 2009 at 8:12 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> On Tue, Sep 15, 2009 at 07:02:41PM +0900, Jassi wrote:
>> Explicitly route audio-bus from FOUTepll via MOUTepll.
>
>> Signed-Off-by: Jassi <jassi.brar@samsung.com>
>
> Why do this in the audio driver rather than doing it in the arch/arm
> code? ?It seems bad form for the audio driver to be looking at clock
> configuration outside its domain.
I understand that.
Even without this patch it sources FOUTepll by default.
This is not meant to be forever. I patched it because
I didn't want to get stuck making platform perfect to push the idea.
>> + ? ? cm = clk_get(NULL, "mout_epll");
>> + ? ? if (IS_ERR(cm)) {
>> + ? ? ? ? ? ? dev_err(&pdev->dev, "failed to get mout_epll\n");
>> + ? ? ? ? ? ? ret = PTR_ERR(cm);
>> + ? ? ? ? ? ? goto mout_err;
>> + ? ? }
>> + ? ? clk_set_parent(i2s->iis_cclk, cm);
>> + ? ? cf = clk_get(NULL, "fout_epll");
>> + ? ? if (IS_ERR(cf)) {
>> + ? ? ? ? ? ? dev_err(&pdev->dev, "failed to get fout_epll\n");
>> + ? ? ? ? ? ? ret = PTR_ERR(cf);
>> + ? ? ? ? ? ? goto fout_err;
>> + ? ? }
>> + ? ? clk_set_parent(cm, cf);
>
> The mout/fout connection in particular isn't audio local, there's way
> more EPLL users than just the audio.
Ofcourse, but i think those drivers and requirements are far off that
may need EPLL.
EPLL is a shared but unused resource. Using EPLL gives far more accurate clocks
and we shudn't keep hands off just because there is no arbiter.
If not here, i favor controlling it from machine specific code.
next prev parent reply other threads:[~2009-09-15 11:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-15 10:02 [PATCH 09/10] S3C64XX I2S: Set parent links for clock audio-bus Jassi
2009-09-15 11:12 ` Mark Brown
2009-09-15 11:42 ` jassi brar [this message]
2009-09-15 12:15 ` Mark Brown
2009-09-15 12:57 ` jassi brar
2009-09-15 13:33 ` Mark Brown
2009-09-16 0:17 ` Ben Dooks
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=1b68c6790909150442m5aaf826fy73a9c48bd2fabbf2@mail.gmail.com \
--to=jassisinghbrar@gmail.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).