You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usb-device-{cdc, hid}: Fix handling of zero length OUT control xfers.
This fix relies on a corresponding change in the low-level USBDevice class.
Without the low-level change, HID and CDC devices may not work correctly at
all.
Zero length OUT control requests were being processed on the device but
stalling the endpoint so the host saw a failure (or hang followed by
failure).
Specifically:
- CDC set control line state and send break requests
- HID set idle or set protocol
This commit also simplifies HID set report logic (tested to still work even
when buffer size doesn't match report length).
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <[email protected]>
0 commit comments