-
Notifications
You must be signed in to change notification settings - Fork 722
USB driver and stack updates from upstream #3437
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
carlescufi
merged 9 commits into
nrfconnect:main
from
jfischer-no:pr-downstream-device_next
Oct 28, 2025
Merged
USB driver and stack updates from upstream #3437
carlescufi
merged 9 commits into
nrfconnect:main
from
jfischer-no:pr-downstream-device_next
Oct 28, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Factor out UDC_DWC2 dependency. Signed-off-by: Johann Fischer <[email protected]> (cherry picked from commit 0018e8d)
…RF54LM20A SoC Kconfig option UDC_DWC2_USBHS_VBUS_READY_TIMEOUT depends on services exclusively available for nRF54H20, but the option can also be used for nRF54LM20A, where there are no service dependencies, and VREG can be accessed by the driver directly. Let depend the option on the SOC series, as the controller can be used by the different CPUs on the SOC. Signed-off-by: Johann Fischer <[email protected]> (cherry picked from commit 4fe2c5b)
…n Kconfig.dwc2 This is a follow up to commit 4fe2c5b. The UDC_DWC2_USBHS_VBUS_READY_TIMEOUT Kconfig option should be available also for nRF92 Series SoCs (as it was previously when it depended on NRFS_HAS_VBUS_DETECTOR_SERVICE), otherwise some builds will fail for such targets. Signed-off-by: Andrzej Głąbek <[email protected]> (cherry picked from commit 6360c7f)
…esets Do not queue new buffer after bus reset if there is one already queued. This fixes memory leak on each bus reset if there are no SETUP transfers received between resets. Signed-off-by: Tomasz Moń <[email protected]> (cherry picked from commit c180420)
Fix the check in dwc2_unset_dedicated_fifo() that wrongly included the current endpoint when testing for higher FIFOs. This caused false warnings and early returns. Use ~BIT_MASK(ep_idx + 1) to only test FIFOs above the current EP. Signed-off-by: Sylvio Alves <[email protected]> (cherry picked from commit 7c1193c)
It is possible for usbd_disable() to be called when the core is hibernated. When done so, the USB stack will attempt to deactivate all the endpoints. Because the core is hibernated, register reads are really undefined. This can lead to udc_dwc2_ep_deactivate() not calling udc_dwc2_ep_disable() which will leave struct udc_ep_config busy flag set. When endpoint 0x00 busy flag is left to true, the driver won't allocate buffer to receive SETUP data which is mandatory in Buffer DMA mode. This leads to essentially dead device after reconnect, because the device will not respond to any control transfers. Solve the issue by modifying backup register value instead of real one when endpoint is deactivated while core is hibernated. Signed-off-by: Tomasz Moń <[email protected]> (cherry picked from commit 35620e20a91efb3284716698f2fa794d02ec6b97)
…ice is registered Do not register the device when the class instance has already been initialised. Fail on initialization if no HID device is registered. Signed-off-by: Johann Fischer <[email protected]> (cherry picked from commit c62575e)
…runtime Allow to set input or output report polling period at runtime. Signed-off-by: Johann Fischer <[email protected]> (cherry picked from commit bca0ce0)
…d at runtime Add an example of how to set the polling period at runtime. Signed-off-by: Johann Fischer <[email protected]> (cherry picked from commit e295a38)
carlescufi
approved these changes
Oct 28, 2025
anangl
approved these changes
Oct 28, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
USB driver and stack updates from upstream