Re: [PATCH] Driver core: add bus_find_device_by_of_node

2018-09-21 Thread Silesh C V
Hello Rafael, On Fri, Sep 21, 2018 at 2:47 PM Rafael J. Wysocki wrote: > > > > > > > > > Second, what about a more generic bus_find_device_by_fwnode() ? > > > > If you think that the above requirement warrants the inclusion of > > bus_find_device_by_of_node, I can try implementing this in v2. > >

Re: [PATCH] Driver core: add bus_find_device_by_of_node

2018-09-21 Thread Rafael J. Wysocki
On Fri, Sep 21, 2018 at 5:45 AM Silesh C V wrote: > > Hello Rafael, > > On Thu, Sep 20, 2018 at 1:06 PM Rafael J. Wysocki wrote: > > > > On Thu, Sep 20, 2018 at 7:43 AM Silesh C V wrote: > > > > > > Similar to bus_find_device_by_name, but finds the device having a > > > specific of_node. > > > >

Re: [PATCH] Driver core: add bus_find_device_by_of_node

2018-09-20 Thread Silesh C V
Hello Rafael, On Thu, Sep 20, 2018 at 1:06 PM Rafael J. Wysocki wrote: > > On Thu, Sep 20, 2018 at 7:43 AM Silesh C V wrote: > > > > Similar to bus_find_device_by_name, but finds the device having a > > specific of_node. > > First, what do you need it for? Please describe your use case in the

Re: [PATCH] Driver core: add bus_find_device_by_of_node

2018-09-20 Thread Rafael J. Wysocki
On Thu, Sep 20, 2018 at 7:43 AM Silesh C V wrote: > > Similar to bus_find_device_by_name, but finds the device having a > specific of_node. First, what do you need it for? Please describe your use case in the changelog. Second, what about a more generic bus_find_device_by_fwnode() ? Thanks, Ra

[PATCH] Driver core: add bus_find_device_by_of_node

2018-09-19 Thread Silesh C V
Similar to bus_find_device_by_name, but finds the device having a specific of_node. Signed-off-by: Silesh C V --- drivers/base/bus.c | 21 + include/linux/device.h | 3 +++ 2 files changed, 24 insertions(+) diff --git a/drivers/base/bus.c b/drivers/base/bus.c index 8bfd