Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USBCore: fix ZLPs for control transfers #53

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

tlyu
Copy link
Contributor

@tlyu tlyu commented Jan 31, 2024

When sending control transfers that are a multiple of 64 bytes, add a ZLP if the host requested more bytes than we sent. This avoids timeouts for some hosts, possibly including Windows. See USB 2.0 §5.5.3.

I've tested this for some simple test cases that exhibited the symptoms before, but it could probably use more testing.

Fixes keyboardio/Chrysalis-Firmware-Bundle#40.

When sending control transfers that are a multiple of 64 bytes, add a
ZLP if the host requested more bytes than we sent. This avoids timeouts
for some hosts, possibly including Windows. See USB 2.0 §5.5.3.

Signed-off-by: Taylor Yu <[email protected]>
@obra obra merged commit 494587a into keyboardio:master Feb 1, 2024
1 check passed
@tlyu tlyu deleted the fix-control-zlp branch February 1, 2024 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Atreus - "GET_DESCRIPTOR" calls are timing out with latest firmware (0.92.1+94)
2 participants