xairy / raw-gadget

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

Manage power on suspend/resume/disconnect in examples #42

Open xairy opened 1 year ago

xairy commented 1 year ago

USB specifications demand specific behavior with regards to the USB power management when the device is suspended, resumed, or disconnected. Raw Gadget examples should follow these requirements. The Composite Gadget framework implementation can be used as a reference: suspend, resume, disconnect.

Implementing this requires exposing more Gadget API functions via Raw Gadget ioctls, see #40.