[PATCH 03/10] tty: pxa: configure pin
Mark Brown
broonie at opensource.wolfsonmicro.com
Tue Oct 23 20:37:12 EST 2012
On Tue, Oct 23, 2012 at 11:26:40AM +0200, Linus Walleij wrote:
> I thought about that, but it does not allow us to control the
> resource activation/deactivation order.
> In some drivers the suspend() path could be:
> - pins to sleep
> - clk_disable
> - disable external regulator
> - release power domain
> In others:
> - clk_disable()
> - disable external regulator
> - pins to sleep()
> - release power domain
> Ulf Hansson ran into this a while back.
> Just like with the notifier approach, this approach assumes that either
> the ordering above doesn't matter, or that it is the same for all drivers.
Can we handle this with power domains - if different devices require
different orderings they can be placed in power domains which implement
the appropriate orderings for them?
> We don't have hogs, bus notifiers and the like for regulators,
> and IIRC Mark disliked the idea. Basically I think it's better if
> all resources are atleast handled the same way.
It'd be OK to have something that was manually activated for specific
regulators but it's not sane to try and do something generic as you'll
end up powering off all your wakeup sources which tends not to work so
well.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20121023/18171929/attachment.sig>
More information about the devicetree-discuss
mailing list