21 Jun
2017
21 Jun
'17
6:13 p.m.
On Thu, Jun 22, 2017 at 12:03:41AM +0800, Shawn Guo wrote:
On Tue, Jun 20, 2017 at 01:40:59PM +0100, Mark Brown wrote:
Sounds like a fairly standard use for a supply widget.
Yes, it can be a supply widget. But it's a bit that controls device overall power rather than any particular component power. Since every single operation of the device will need this power bit to be on, I think it makes sense to configure the bit in .startup/.shutdown hooks, rather than creating a widget for it and attaches the widget to a bunch of components.
Do it with DAPM - this means any analogue paths will work and there's no possibility of refcounting issues. You will need to create a bunch of links but that's pretty easy and it's all data rather than code.