[U-Boot] [PATCH 1/3] core: Add function to get device for ofnode
Simon Glass
sjg at chromium.org
Thu Apr 12 16:42:32 UTC 2018
Hi Mario,
On 10 April 2018 at 05:34, Mario Six <mario.six at gdsys.cc> wrote:
> Hi Simon,
>
> On Fri, Mar 30, 2018 at 12:43 AM, Simon Glass <sjg at chromium.org> wrote:
>> Hi Mario,
>>
>> On 28 March 2018 at 20:37, Mario Six <mario.six at gdsys.cc> wrote:
>>> It's sometimes useful to get the device associated with a given ofnode.
>>> Implement a function to implement this lookup operation.
>>
>> Where would you use this? Can you not use phandles to find the device?
>> Or uclass_get_device_by_ofnode() ?
>>
>
> The function is used with the dev_{enable,disable}_by_path in the next patch:
> If I used any of the uclass_* functions or similar, the device would be probed,
> which is not what I want, since the device may not actually be physically
> present.
So how about using uclass_find_device_by_ofnode() ?
Regards,
Simon
More information about the U-Boot
mailing list