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

Allow stalling non-0-length control OUT transfers #71

Open
xairy opened this issue Jun 16, 2024 · 0 comments
Open

Allow stalling non-0-length control OUT transfers #71

xairy opened this issue Jun 16, 2024 · 0 comments
Labels
gadget subsystem Requires changes in USB Gadget subsystem kernel Requires kernel changes raw gadget Requires changes in Raw Gadget

Comments

@xairy
Copy link
Owner

xairy commented Jun 16, 2024

This issue is caused by a limitation of the USB Gadget API.

Right now, all UDC drivers auto-complete the status stage of non-0-length control OUT transfers. As a result, it's impossible to stall such transfers. There was a patch series that intended to address this, but it was never merged. See the discussion for more details.

To resolve this, we would need to extend the Gadget API, add support into all/relevant UDC drivers, and then extend the Raw Gadget UAPI interface.

@xairy xairy added kernel Requires kernel changes raw gadget Requires changes in Raw Gadget gadget subsystem Requires changes in USB Gadget subsystem labels Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gadget subsystem Requires changes in USB Gadget subsystem kernel Requires kernel changes raw gadget Requires changes in Raw Gadget
Projects
None yet
Development

No branches or pull requests

1 participant