Skip to content

Conversation

@tmon-nordic
Copy link
Contributor

This solves not working enumeration on nRF54H20 on subsequent cable connection when cable was disconnected while device was hibernated.

UDC API passes struct udc_ep_config to all functions. Some UDC functions
were using endpoint config structure while some were using device and
endpoint number. This API inconsistency led to completely unnecessary
endpoint structure lookups. Remove unnecessary lookups by using endpoint
config structure pointer where it makes sense.

Signed-off-by: Tomasz Moń <[email protected]>
(cherry picked from commit 1cccf28)
… hibernated

When endpoint is disabled while hibernated, the UDC endpoint state has
to be reset. Set the busy to false to keep UDC endpoint state in sync
with peripheral register state.

Upstream PR #: 88236

Fixes: 2be960a ("drivers: udc_dwc2: Disable endpoint while
hibernated")

Signed-off-by: Tomasz Moń <[email protected]>
@tmon-nordic tmon-nordic added this to the ncs-3.0.0 milestone Apr 7, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 7, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
12.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@tmon-nordic tmon-nordic merged commit 7a28ef1 into nrfconnect:main Apr 7, 2025
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport v4.0.99-ncs1-branch Relates to NCS v3.0-branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants