From: ben-linux@fluff.org (Ben Dooks)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 10/10] S3C64XX I2S: En/Disable codec clocks.
Date: Wed, 16 Sep 2009 01:18:29 +0100 [thread overview]
Message-ID: <20090916001829.GF24720@trinity.fluff.org> (raw)
In-Reply-To: <1b68c6790909150535p777f93d4pc416f65dd8dbced4@mail.gmail.com>
On Tue, Sep 15, 2009 at 09:35:48PM +0900, jassi brar wrote:
> On Tue, Sep 15, 2009 at 8:49 PM, Mark Brown
> <broonie@opensource.wolfsonmicro.com> wrote:
> > On Tue, Sep 15, 2009 at 07:02:42PM +0900, Jassi wrote:
> >
> >> ? ? ? switch (clk_id) {
> >> ? ? ? case S3C64XX_CLKSRC_PCLK:
> >> ? ? ? ? ? ? ? iismod &= ~S3C64XX_IISMOD_IMS_SYSMUX;
> >> + ? ? ? ? ? ? clk_disable(i2s->iis_cclk);
> >> ? ? ? ? ? ? ? break;
> >>
> >> ? ? ? case S3C64XX_CLKSRC_MUX:
> >> ? ? ? ? ? ? ? iismod |= S3C64XX_IISMOD_IMS_SYSMUX;
> >> + ? ? ? ? ? ? clk_enable(i2s->iis_cclk);
> >> ? ? ? ? ? ? ? break;
> >
> > I'd expect that this will cause trouble eventually - machine drivers
> > tend to call set_sysclk() repeatedly, meaning that the clock will be
> > repeatedly enabled or disabled. ?Eventually this will overflow the
> > counter the clock API is using, perhaps even cause it to complain loudly
> > about errors (eg, if the use count drops below zero). ?A local reference
> > count should deal with those issues, or checking to see if iismod
> > actualy changed before updating the clock API.
> Yes, this was a bad idea.
agreed.
--
Ben
Q: What's a light-year?
A: One-third less calories than a regular year.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20090916/40a97046/attachment.sig>
prev parent reply other threads:[~2009-09-16 0:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-15 10:02 [PATCH 10/10] S3C64XX I2S: En/Disable codec clocks Jassi
2009-09-15 11:49 ` Mark Brown
2009-09-15 12:35 ` jassi brar
2009-09-16 0:18 ` Ben Dooks [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=20090916001829.GF24720@trinity.fluff.org \
--to=ben-linux@fluff.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 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.