Skip to content
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

usbdev: Split usbdev descriptor information #10480

Merged
merged 1 commit into from Sep 5, 2023

Conversation

zyfeier
Copy link
Contributor

@zyfeier zyfeier commented Sep 5, 2023

Summary

This PR is a partial modify for issue #10433, This modification can unify the handling of configuration descriptors related to the device.

Split usbdev descriptor information, let the class device only handles descriptor information specific to the class, and shared descriptor information is passed through parameters and handled by the composite driver.

Impact

composite_initialize arguments have changed and board specific composite initialization needs to be updated.

before:
FAR void *composite_initialize(uint8_t ndevices, FAR struct composite_devdesc_s *pdevices);

after:
FAR void *composite_initialize(FAR const struct usbdev_devdescs_s *devdescs, FAR struct composite_devdesc_s *pdevices, uint8_t ndevices);

Testing

sim:usbdev and bes borad with adb

@raiden00pl
Copy link
Contributor

Please mark this as a breaking change and add a note in Impact that composite_initialize() arguments have changed and board specific composite initialization needs to be updated.

@xiaoxiang781216 xiaoxiang781216 added the breaking change This change requires a mitigation entry in the release notes. label Sep 5, 2023
The class device only handles descriptor information specific to the class,
and shared descriptor information is passed through parameters and
handled by the composite driver.

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 0efd4d0 into apache:master Sep 5, 2023
26 of 52 checks passed
@xiaoxiang781216 xiaoxiang781216 linked an issue Sep 20, 2023 that may be closed by this pull request
@jerpelea jerpelea added this to To-Add in Release Notes - 12.3.0 Sep 26, 2023
@jerpelea jerpelea moved this from To-Add to drivers in Release Notes - 12.3.0 Sep 27, 2023
@jerpelea jerpelea moved this from drivers to done in Release Notes - 12.3.0 Oct 3, 2023
@zyfeier zyfeier deleted the usb branch October 18, 2023 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change This change requires a mitigation entry in the release notes.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Suggestion: Unified usbdev enumeration process
3 participants