Thread (63 messages) 63 messages, 11 authors, 2012-08-07

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

From: Stephen Warren <hidden>
Date: 2012-08-06 16:16:46
Also in: linux-devicetree, linux-tegra, lkml

On 08/05/2012 08:27 PM, Alex Courbot wrote:
On 08/04/2012 11:12 PM, Mark Brown wrote:
quoted
On Fri, Aug 03, 2012 at 10:15:46AM +0900, Alex Courbot wrote:
quoted
On Fri 03 Aug 2012 03:11:12 AM JST, Mark Brown wrote:
quoted
quoted
I missed some of the earlier bits of the thread here but why can't
we do
device based lookups?
...
I think we only have two choices for this:

1) Stick to the scheme where resources are declared at the device level,
such as they can be referenced by name in the sub-nodes (basically what
I did in this patch):

backlight {
     compatible = "pwm-backlight";
     ...
     backlight-supply = <&backlight_reg>;

     power-on-sequence {
         step@0 {
             regulator = "backlight";
             enable;
         };

This would translate by a get_regulator(dev, "backlight") in the code
which would be properly resolved.
Yes, upon reflection, that scheme does make sense. I withdraw the
comments I made re: whether it'd be better to just stick the phandles
into the steps.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help