From: u.kleine-koenig@pengutronix.de (Uwe Kleine-König)
To: linux-arm-kernel@lists.infradead.org
Subject: sleeping clk_[enable,disable]?
Date: Wed, 24 Feb 2010 09:46:07 +0100 [thread overview]
Message-ID: <20100224084607.GB8068@pengutronix.de> (raw)
In-Reply-To: <63386a3d1002230632v4c98c79dg4512684f76008a7d@mail.gmail.com>
Hello,
On Tue, Feb 23, 2010 at 03:32:19PM +0100, Linus Walleij wrote:
> A question here:
>
> If you have a clocking hardware that would actually require
> clk_[enable,disable] to
> sleep in order to ascertain that the clock is actually in the
> requested state when
> you return from these functions, what can you do?
>
> I could think of several solutions, like:
>
> * Actually let clk_[enable,disable] sleep, make sure all drivers only calls them
> in thread context.
>
> * Impose a state in the clk so it can be "in transition", then an
> additional function
> clk_is_stable() which will also have to be added to most drivers but had the
> advantage of not violating the defined clk_[enable,disable] API.
>
> * Throw in udelay():s after the clk_[enable,disable] calls, with some values
> that are unfortunately then spread out in the drivers instead of in the
> clk implementation.
I had a similar problem some time ago, and choosed to let
clk_{en,dis}able sleep.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
prev parent reply other threads:[~2010-02-24 8:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-23 14:32 sleeping clk_[enable,disable]? Linus Walleij
2010-02-23 20:03 ` Rabin Vincent
2010-02-23 21:36 ` Linus Walleij
2010-02-24 8:46 ` Uwe Kleine-König [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=20100224084607.GB8068@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--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).