xairy / raw-gadget

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

Make Raw Gadget and dwc3 compatible #45

Closed xairy closed 3 months ago

xairy commented 1 year ago

The dwc3 UDC driver handles setup requests with wLength == 0 in an unusual way, see the details here.

We need to either fix dwc3 or make Raw Gadget support the way dwc3 works.

xairy commented 1 year ago

Workaround: https://github.com/xairy/raw-gadget/commit/dfc4ee247ec93d6fb0a4ca7647260214483333ca.

xairy commented 1 year ago

Sent workaround upstream.

xairy commented 3 months ago

The workaround has been merged.

Filed #70 to track/document the USB_GADGET_DELAYED_STATUS inconsistency in the UDC drivers.