usb: device_next: allow to initialize multiple CDC ACM instances#104697
Closed
jfischer-no wants to merge 1 commit intozephyrproject-rtos:mainfrom
Closed
usb: device_next: allow to initialize multiple CDC ACM instances#104697jfischer-no wants to merge 1 commit intozephyrproject-rtos:mainfrom
jfischer-no wants to merge 1 commit intozephyrproject-rtos:mainfrom
Conversation
Several users have requested the ability to register and initialize multiple CDC ACM instances, which would be used as serial backends for different subsystems. It should be noted that these instances will not be available for other configurations or USB device contexts. The order of the instances is also not guaranteed. For identification purposes, a host application needs to use the label property of the CDC ACM UART node. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
8822e1c to
0ebfc5a
Compare
tmon-nordic
reviewed
Mar 2, 2026
Comment on lines
+100
to
+105
| The number of initialized CDC ACM instances is one by default. | ||
| If the application requires multiple CDC ACM serial backends, the number of | ||
| registered and initialized instances can be increased using | ||
| :kconfig:option:`CONFIG_CDC_ACM_SERIAL_INSTANCES_NUMBER`. | ||
| The order of the instances is not guaranteed. For identification purposes, a | ||
| host application needs to use the label property of the CDC ACM UART node. |
Contributor
There was a problem hiding this comment.
Can you link to the source behind "Several users have requested the ability to register and initialize multiple CDC ACM instances"? The solution here is very questionable.
Contributor
There was a problem hiding this comment.
Is there anything specific to require having a dedicated Kconfig option? Why not just iterate over all zephyr,cdc-acm-uart compatibles?
|
Contributor
Author
|
Opened #105141 as an alternative. |
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
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.



Allow to initialize multiple CDC ACM instances.