lkml.org 
[lkml]   [2012]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC][PATCH v3 1/3] runtime interpreted power sequences
    On Fri, Aug 03, 2012 at 10:15:46AM +0900, Alex Courbot wrote:
    > On Fri 03 Aug 2012 03:11:12 AM JST, Mark Brown wrote:

    > >I missed some of the earlier bits of the thread here but why can't we do
    > >device based lookups?

    > That is because the phandles would not be properties of the device
    > node but rather of its sub-nodes:

    > backlight {
    > compatible = "pwm-backlight";
    > ...
    > power-on-sequence {
    > step@0 {
    > regulator = <&backlight_reg>;
    > enable;
    > };
    >

    > So here simply using regulator_get on the backlight device would not work.

    Ah, right. DT isn't being terribly helpful here... I think the thing
    I'd expect to work here is that you have a reference back to the supply
    property of the backlight device rather than direct to the regulator so
    you end up writing "enable supply X" rather than "enable regulator X".

    Not quite sure how exactly you'd accomplish that - I guess if
    regulator_get() would recursively follow phandles until it hits a node
    that'd do the trick?


    \
     
     \ /
      Last update: 2012-08-04 17:01    [W:2.860 / U:0.764 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site