Skip to content

Conversation

@jfischer-no
Copy link
Contributor

Add an opaque pointer to store upper layer private data and initialize it with the USB device context during controller initialization. Use the pointer in event processing to get the correct context.

Fixes: #74291

@jfischer-no jfischer-no added area: USB Universal Serial Bus Experimental Experimental features not enabled by default labels Jul 12, 2024
@jfischer-no jfischer-no added this to the v3.7.0 milestone Jul 12, 2024
@jfischer-no jfischer-no self-assigned this Jul 12, 2024
@nashif nashif added the backport v3.7-branch Request backport to the v3.7-branch label Jul 16, 2024
@aescolar aescolar removed this from the v3.7.0 milestone Jul 16, 2024
Add an opaque pointer to store upper layer private data and initialize
it with the USB device context during controller initialization. Use the
pointer in event processing to get the correct context.

Fixes commit 48f2a4b
("usb: device_next: remove initialized state checks in event processing")

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: USB Universal Serial Bus backport v3.7-branch Request backport to the v3.7-branch Experimental Experimental features not enabled by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple USB contexts for same device lead to bus faults

4 participants