From: linus.ml.walleij@gmail.com (Linus Walleij)
To: linux-arm-kernel@lists.infradead.org
Subject: sleeping clk_[enable,disable]?
Date: Tue, 23 Feb 2010 15:32:19 +0100 [thread overview]
Message-ID: <63386a3d1002230632v4c98c79dg4512684f76008a7d@mail.gmail.com> (raw)
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.
Any ideas?
Linus Walleij
next reply other threads:[~2010-02-23 14:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-23 14:32 Linus Walleij [this message]
2010-02-23 20:03 ` sleeping clk_[enable,disable]? Rabin Vincent
2010-02-23 21:36 ` Linus Walleij
2010-02-24 8:46 ` Uwe Kleine-König
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=63386a3d1002230632v4c98c79dg4512684f76008a7d@mail.gmail.com \
--to=linus.ml.walleij@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).