Thread (13 messages) 13 messages, 6 authors, 2012-09-20

[PATCH] pwm: Call pwm_enable() before pwm_config()

From: Mark Brown <hidden>
Date: 2012-09-20 19:04:09
Also in: linux-fbdev, linux-input, lkml

On Thu, Aug 23, 2012 at 07:12:04PM +0200, Lars-Peter Clausen wrote:
On 08/23/2012 06:57 PM, Beno??t Th??baudeau wrote:
quoted
exists with several other PWM drivers.
Since this seems to be a common pattern in a number of PWM drivers it might
make sense to simply add support for enabling/disabling a clk to the pwm core.
Or maybe just use the runtime pm API for this. This probably makes even more
sense and grab a reference to the pm context when the enable() is called,
release it when disable() is called and also grab it before calling the
device's config callback and release it afterward.
It's a problem with IPs in general, a good proportion of modern SoCs
need a clock supplying in order to interact with the registers on most
of their IPs.  runtime PM is the normal way forwards, Tegra recently
started using regmap's cache code to handle this transparently in the
driver.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help