On Fri, Apr 22, 2022 at 01:57:17PM +0200, Rafael J. Wysocki wrote: > On Tue, Apr 19, 2022 at 9:11 PM Sandeep Maheswaram > <quic_c_sanm@xxxxxxxxxxx> wrote: > > > > From: Matthias Kaehlcke <mka@xxxxxxxxxxxx> > > > > Add device_children_wakeup_capable() which checks whether the device itself > > or one if its descendants is wakeup capable. > > device_wakeup_path() exists for a very similar purpose. > > Is it not usable for whatever you need the new function introduced here? I wasn't aware of it's function, there are no doc comments and the name isn't really self explanatory. In a quick test device_wakeup_path() returned inconsistent values for the root hub, sometimes true, others false when a wakeup capable USB device was connected.