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.
Quoting:
We need to properly set
wakeup_capable
andwakeup_armed
in UDC drivers to allow exposing the information about whether the UDC supports remote wake up as a part of #41.