-
Notifications
You must be signed in to change notification settings - Fork 364
zephyr: ipc: stop selecting deprecated INTEL_ADSP_IPC Kconfig #11010
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,8 +13,10 @@ | |
|
|
||
| #include <zephyr/kernel.h> | ||
| #include <zephyr/ipc/ipc_service.h> | ||
| #ifdef CONFIG_INTEL_ADSP_IPC | ||
| #ifdef CONFIG_IPC_SERVICE_BACKEND_INTEL_ADSP_HOST_IPC | ||
| #include <zephyr/ipc/backends/intel_adsp_host_ipc.h> | ||
| #endif | ||
| #ifdef CONFIG_INTEL_ADSP_IPC_OLD_INTERFACE | ||
| #include <intel_adsp_ipc.h> | ||
| #endif | ||
|
|
||
|
|
@@ -97,7 +99,7 @@ static void sof_ipc_receive_cb(const void *data, size_t len, void *priv) | |
| k_spin_unlock(&ipc->lock, key); | ||
| } | ||
|
|
||
| #ifdef CONFIG_PM_DEVICE | ||
| #if defined(CONFIG_PM_DEVICE) && defined(CONFIG_IPC_SERVICE_BACKEND_INTEL_ADSP_HOST_IPC) | ||
| /** | ||
| * @brief IPC device suspend handler callback function. | ||
| * Checks whether device power state should be actually changed. | ||
|
|
@@ -179,7 +181,7 @@ static int ipc_device_resume_handler(const struct device *dev, void *arg) | |
| #endif | ||
| return 0; | ||
| } | ||
| #endif /* CONFIG_PM_DEVICE */ | ||
| #endif /* CONFIG_PM_DEVICE && CONFIG_IPC_SERVICE_BACKEND_INTEL_ADSP_HOST_IPC */ | ||
|
|
||
| #if CONFIG_DEBUG_IPC_COUNTERS | ||
|
|
||
|
|
@@ -328,7 +330,7 @@ int platform_ipc_init(struct ipc *ipc) | |
| if (ret < 0) | ||
| return ret; | ||
|
|
||
| #if defined(CONFIG_PM) && defined(CONFIG_INTEL_ADSP_IPC) | ||
| #if defined(CONFIG_PM_DEVICE) && defined(CONFIG_IPC_SERVICE_BACKEND_INTEL_ADSP_HOST_IPC) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is replacing CONFIG_PM with CONFIG_PM_DEVICE intentional or a mistake?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| intel_adsp_ipc_set_suspend_handler(INTEL_ADSP_IPC_HOST_DEV, | ||
| ipc_device_suspend_handler, ipc); | ||
| intel_adsp_ipc_set_resume_handler(INTEL_ADSP_IPC_HOST_DEV, | ||
|
|
@@ -338,7 +340,7 @@ int platform_ipc_init(struct ipc *ipc) | |
| return 0; | ||
| } | ||
|
|
||
| #ifdef CONFIG_INTEL_ADSP_IPC | ||
| #ifdef CONFIG_INTEL_ADSP_IPC_OLD_INTERFACE | ||
| static bool ipc_wait_complete(const struct device *dev, void *arg) | ||
| { | ||
| k_sem_give(arg); | ||
|
|
@@ -358,4 +360,4 @@ void ipc_platform_wait_ack(struct ipc *ipc) | |
|
|
||
| intel_adsp_ipc_set_done_handler(INTEL_ADSP_IPC_HOST_DEV, NULL, NULL); | ||
| } | ||
| #endif /* CONFIG_INTEL_ADSP_IPC */ | ||
| #endif /* CONFIG_INTEL_ADSP_IPC_OLD_INTERFACE */ | ||
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 a known issue but will be addressed later.