Skip to content

drivers: udc: kinetis/usbd: fixes for v4.0.0 #80727

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

Merged

Conversation

jfischer-no
Copy link
Contributor

UDC driver fixes cherry-picked from USB DFU PR #79794.

Reset control endpoint busy flags if configured and enabled, otherwise
it could mark the wrong buffer as busy after endpoint disable/enable.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
If the direction of the last setup packet is not to the device but to
the host, then the transfer is not a status stage and should be queued.
This is not checked and prevents a zero length control IN transfer to
the host, e.g. used by the DFU class to indicate the end of the upload
process.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
@jfischer-no jfischer-no added area: Drivers area: USB Universal Serial Bus Experimental Experimental features not enabled by default labels Nov 1, 2024
@jfischer-no jfischer-no added this to the v4.0.0 milestone Nov 1, 2024
@mmahadevan108 mmahadevan108 merged commit 973f914 into zephyrproject-rtos:main Nov 5, 2024
30 checks passed
@jfischer-no jfischer-no deleted the pr-udc-fix-kinetis-usbd-v4 branch November 6, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Drivers area: USB Universal Serial Bus Experimental Experimental features not enabled by default
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants