Skip to content

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 <[email protected]>
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 <[email protected]>
@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