xairy / raw-gadget

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

Clean up request flags #47

Open xairy opened 10 months ago

xairy commented 10 months ago

During endpoint operations, Raw Gadget allows providing a USB_RAW_IO_FLAGS_ZERO flag, which sets the zero flag on the submitted USB request.

We need to:

  1. Figure out if the USB_RAW_IO_FLAGS_ZERO is useful being exposed to userspace and remove it if not. For reference: how zero is used in GadgetFS.

  2. Possibly add other request flags supported by the gadget subsystem. For reference: is_last in f_tcm.c, no_interrupt in uvc_video.c.