-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
driver: ssp: Refactor SSP driver to use SSP_IP_VER for version checks #78470
driver: ssp: Refactor SSP driver to use SSP_IP_VER for version checks #78470
Conversation
24c0646
to
3253bd3
Compare
#define SSP_IP_VER SSP_IP_VER_2_0 | ||
#elif defined(CONFIG_SOC_INTEL_ACE30) | ||
#define SSP_IP_VER SSP_IP_VER_3_0 | ||
#endif |
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.
just suggestion:
#else
#error ...unknown HW...
#endif
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.
Yes, this is a good idea - I will change it. Thanks
617598f
to
5423804
Compare
5423804
to
760973b
Compare
760973b
to
fbe9fe6
Compare
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.
Thanks @dnikodem , look good . One minor inline for one more place to convert, please check.
drivers/dai/intel/ssp/ssp.c
Outdated
@@ -1980,12 +1985,12 @@ static int dai_ssp_parse_tlv(struct dai_intel_ssp *dp, const uint8_t *aux_ptr, s | |||
case SSP_LINK_CLK_SOURCE: | |||
#ifdef CONFIG_SOC_SERIES_INTEL_ADSP_ACE |
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 this be changed as well? #ifdef SSP_IP_VER >= SSP_IP_VER_1_5
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.
yes, good catch, thanks :)
This commit updates the SSP driver to use the newly defined SSP_IP_VER macros for IP version checks instead of relying on CONFIG_SOC_* macros. The change ensures better readability and maintainability by centralizing the IP version definitions and comparisons. Signed-off-by: Damian Nikodem <[email protected]>
fbe9fe6
to
e796e59
Compare
This commit updates the SSP driver to use the newly defined SSP_IP_VER macros for IP version checks instead of relying on CONFIG_SOC_* macros. The change ensures better readability and maintainability by centralizing the IP version definitions and comparisons.