[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALabi0HOSbsemnw=v7h+arstXMMqaAYGmRPFNQDSE_U0+Kg0KQ@mail.gmail.com>
Date: Fri, 21 Sep 2018 09:14:57 +0530
From: Silesh C V <svellattu@...sta.com>
To: "Rafael J. Wysocki" <rafael@...nel.org>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Driver core: add bus_find_device_by_of_node
Hello Rafael,
On Thu, Sep 20, 2018 at 1:06 PM Rafael J. Wysocki <rafael@...nel.org> wrote:
>
> On Thu, Sep 20, 2018 at 7:43 AM Silesh C V <svellattu@...sta.com> 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.
This will be useful for drivers that do not register a platform_driver
(but retrieve the "simple-bus" device_node using
of_find_compatible_node etc.) but are still interested in the struct
device.
>
> 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.
Thanks.
Regards,
Silesh
Powered by blists - more mailing lists