-
Notifications
You must be signed in to change notification settings - Fork 7.7k
usb: make device-next default and move legacy sample code to legacy directory #87269
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
base: main
Are you sure you want to change the base?
usb: make device-next default and move legacy sample code to legacy directory #87269
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are also some CDC ACM twister failures, some where both USB stacks seem to be active simultaneously and some where there doesn't seem to be CDC ACM devicetree instance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty much same comment as last time this was proposed (see #80985 (comment)):
As already stated in an earlier comment on this PR (#80985 (review)) I do not think "device_next" is ready becoming the default USB device stack in Zephyr v4.1.
There's the issue with lack of "vendor" testing (tested it on a random selection of development boards, three of the new USB device drivers failed to enumerate on MS Windows), the lack of support for a number of platforms (I know some people find it acceptable to "leave these behind"), the list of open bug reports - and especially the vastly increased RAM/ROM footprint as reported in #83309. These are all mentioned in #42066 but not yet handled with 9 days until v4.1 feature freeze.
53c9919
to
15be1f2
Compare
We agreed those would not be a factor I believe, after I sent an informative email to devel@
Which are those? I am not familiar with these.
Agreed, this needs to be addressed. |
I meant the open issues reported against the
|
I agree with you. @jfischer-no and @tmon-nordic could you please go over these and see what can be fixed? |
|
Add a sample that covers legacy CDC EEM/ECM and RNDIS functions. Network functionality is limited to ICMP. Signed-off-by: Johann Fischer <[email protected]>
Remove legacy netusb code. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
The change only affects board nrf52840dongle_nrf52840. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
Remove netusb code and use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
Remove netusb code, use new USB device stack and CDC NCM implementation. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
57d2e04
to
c7ef307
Compare
Add Kconfig option BOOT_SERIAL_UART, defined in the MCUboot module but needed to be used in tests, to the UNDEF_KCONFIG_ALLOWLIST. Signed-off-by: Johann Fischer <[email protected]>
The test requires two UARTs: one for console output and one for device management. Use UART1 for device management instead of CDC ACM because the legacy stack is deprecated and it will take some time for MCUboot to adapt. Signed-off-by: Johann Fischer <[email protected]>
Add note about legacy samples and update USB samples root documentation. Signed-off-by: Johann Fischer <[email protected]>
Deprecate legacy USB device support. Signed-off-by: Johann Fischer <[email protected]>
Document that the legacy stack is now deprecated. Signed-off-by: Johann Fischer <[email protected]>
Update MCUboot to the version needed for the deprecation of the legacy stack. Signed-off-by: Johann Fischer <[email protected]>
c7ef307
to
b8ead61
Compare
|
sample.usb.legacy.audio.headphones_microphone: | ||
depends_on: usb_device | ||
tags: usb | ||
build_only: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we really be changing the samples to build only? I would prefer to just move the files intact.
Make USB device-next samples default and move legacy code to legacy directory.