linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* sleeping clk_[enable,disable]?
@ 2010-02-23 14:32 Linus Walleij
  2010-02-23 20:03 ` Rabin Vincent
  2010-02-24  8:46 ` Uwe Kleine-König
  0 siblings, 2 replies; 4+ messages in thread
From: Linus Walleij @ 2010-02-23 14:32 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-24  8:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).