Hi Mario, On 10 April 2018 at 05:34, Mario Six <mario....@gdsys.cc> wrote: > Hi Simon, > > On Fri, Mar 30, 2018 at 12:43 AM, Simon Glass <s...@chromium.org> wrote: >> Hi Mario, >> >> On 28 March 2018 at 20:37, Mario Six <mario....@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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot