xairy / raw-gadget

USB Raw Gadget — a low-level interface for the Linux USB Gadget subsystem
350 stars 37 forks source link

Set wakeup_capable and wakeup_armed in UDC drivers that support remote wake up #73

Open xairy opened 3 months ago

xairy commented 3 months ago

Quoting:

While the wakeup_capable and wakeup_armed bitflags are defined in linux/usb/gadget.h, it doesn't look like any of the UDC drivers implement them. So it may not be possible to see whether the UDC supports remote wakeup (but it appears that most of them do).

We need to properly set wakeup_capable and wakeup_armed in UDC drivers to allow exposing the information about whether the UDC supports remote wake up as a part of #41.

xairy commented 3 months ago

On a related note, dwc2 does not support remote wake up.