-
Notifications
You must be signed in to change notification settings - Fork 8.3k
firmware: scmi: nxp: add "nxp" to the CPU protocol definitions #100410
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?
firmware: scmi: nxp: add "nxp" to the CPU protocol definitions #100410
Conversation
4ff234d to
bb7de09
Compare
The SCMI CPU protocol is in fact a vendor extension from NXP. The current naming used for the CPU protocol definitions (i.e. functions, structures, macros) follows that of the SCMI standard protocols, which might be misleading. Include "nxp" in the name of all of the CPU protocol definitions. This change was performed mechanically using "git grep" and "sed -i" with some manual intervention. Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
|
yongxu-wang15
left a comment
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.
test fine in imx943 mcore pm context, one struct need to drop from my side
| uint32_t sleep_mode; | ||
| }; | ||
|
|
||
| struct scmi_pd_lpm_settings { |
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.
this is unused now, it already be replaced by scmi_nxp_cpu_sleep_mode_config, please delete it if not use
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.
Git grep shows that this is still being used though (struct scmi_nxp_cpu_pd_lpm_config uses the structure you've mentioned):
drivers/firmware/scmi/nxp/cpu.c:int scmi_nxp_cpu_pd_lpm_set(struct scmi_nxp_cpu_pd_lpm_config *cfg)
include/zephyr/drivers/firmware/scmi/nxp/cpu.h: * @struct scmi_nxp_cpu_pd_lpm_config
include/zephyr/drivers/firmware/scmi/nxp/cpu.h:struct scmi_nxp_cpu_pd_lpm_config {
include/zephyr/drivers/firmware/scmi/nxp/cpu.h:int scmi_nxp_cpu_pd_lpm_set(struct scmi_nxp_cpu_pd_lpm_config *cfg);
soc/nxp/imx/imx9/imx943/pm_mcore.c: struct scmi_nxp_cpu_pd_lpm_config cpu_pd_lpm_cfg;
soc/nxp/imx/imx9/imx95/m7/soc.c: struct scmi_nxp_cpu_pd_lpm_config cpu_pd_lpm_cfg;
Looked at soc/nxp/imx/imx9/imx943/pm_mcore.c and I can see this is being used in pm_state_before(). Plus there's the scmi_nxp_cpu_pd_lpm_set() command.
Perhaps I'm missing something here?
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.
I'm sorry, you're right, I misread it.



The SCMI CPU protocol is in fact a vendor extension from NXP. The current naming used for the CPU protocol definitions (i.e. functions, structures, macros) follows that of the SCMI standard protocols, which might be misleading.
Include "nxp" in the name all of the CPU protocol functions. No functional change.
This change was performed mechanically using "git grep" and "sed -i" with some manual intervention.