raw-gadget
raw-gadget copied to clipboard
Set wakeup_capable and wakeup_armed in UDC drivers that support remote wake up
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.
On a related note, dwc2 does not support remote wake up.