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

drivers: udc_ambiq: fix compilation issue after dwc2 header removal #87664

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zeonchew
Copy link
Contributor

udc_ambiq was using USB test mode definition in dwc2 header, which the include was removed, hence compilation now fails.
This PR is to fix the compilation error for udc_ambiq.c

@github-actions github-actions bot added platform: Ambiq Ambiq area: USB Universal Serial Bus labels Mar 26, 2025
@github-actions github-actions bot requested a review from jfischer-no March 26, 2025 02:57
AlessandroLuo
AlessandroLuo previously approved these changes Mar 26, 2025
@AlessandroLuo AlessandroLuo requested a review from aaronyegx March 27, 2025 01:47
aaronyegx
aaronyegx previously approved these changes Mar 27, 2025
Comment on lines 51 to 54
#define USB_TEST_MODE_FEAT_SEL_TESTJ 1UL
#define USB_TEST_MODE_FEAT_SEL_TESTK 2UL
#define USB_TEST_MODE_FEAT_SEL_TESTSN 3UL
#define USB_TEST_MODE_FEAT_SEL_TESTPM 4UL
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These may be useful to others, and driver definitions should be prefixed differently. Please cherry-pick jfischer-no@2624e0e or apply https://github.com/jfischer-no/zephyr/commit/2624e0e6e1e55c81a4afd83d92e3afa8e9afa063.patch

Copy link
Contributor Author

@zeonchew zeonchew Mar 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jfischer-no, thanks, that's much better to put them into common header since these are the definitions inside USB specification. Change done and pushed. Please help to have a look again.

udc_ambiq was using USB test mode definition in dwc2 header, which
the include was removed, hence compilation now fails. This commit
fixes the compilation failure.

Signed-off-by: Chew Zeh Yang <zeon.chew@ambiq.com>
@zeonchew zeonchew dismissed stale reviews from aaronyegx and AlessandroLuo via 2992ce2 March 28, 2025 01:48
@zeonchew zeonchew force-pushed the pr-udc-ambiq-fix-compile-err branch from 2be9a29 to 2992ce2 Compare March 28, 2025 01:48
@zeonchew zeonchew requested a review from jfischer-no March 28, 2025 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: USB Universal Serial Bus platform: Ambiq Ambiq
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants