-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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: intel_adsp: Refactor Power Management Initialization for DMIC, SSP, and GPDMA Drivers #82115
drivers: intel_adsp: Refactor Power Management Initialization for DMIC, SSP, and GPDMA Drivers #82115
Conversation
When reprinting the shell command buffer with long user inputs, the reprinted buffer may cross a line boundary, and require a newline to be printed. For these cases, print the command buffer character by character, inserting newlines as appropriate. Fixes zephyrproject-rtos#82115 Signed-off-by: Daniel DeGrasse <[email protected]>
e247afe
to
b18d544
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.
Looks very nice clean up of the code.
|
||
return pm_device_runtime_enable(dev); | ||
return pm_device_driver_init(dev, dmic_pm_action); |
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.
Not an expert with the pm code, but this does look very clean and matches with other drivers' use of Zephyr runtime-pm, so looks good for me.
136207d
to
b5e455c
Compare
Rebase to enable testing in SOF CI: thesofproject/sof#9713 |
This patch refactors the power management initialization for the DMIC driver across ACE15, ACE20, and ACE30 generations to align with the recommended practices outlined in the documentation. The changes include: 1. Replacing the conditional initialization of power management state with a call to `pm_device_driver_init` in the `dai_dmic_initialize_device` function. 2. Adding the `zephyr,pm-device-runtime-auto` property to the DMIC nodes in the device tree files for ACE15, ACE20, and ACE30. These changes ensure that the DMIC driver is initialized with the appropriate power management state and that runtime power management is automatically enabled based on the device tree configuration. The functionality of the power management state remains unchanged, ensuring consistent behavior. Signed-off-by: Tomasz Leman <[email protected]>
This patch refactors the power management initialization for the SSP driver across ACE15, ACE20, and ACE30 generations to align with the recommended practices outlined in the documentation. The changes include: 1. Replacing the conditional initialization of power management state with a call to `pm_device_driver_init` in the `ssp_init` function. 2. Adding the `zephyr,pm-device-runtime-auto` property to the SSP nodes in the device tree files for ACE15, ACE20, and ACE30. 3. Moving the power domain assignment for the SSP device in the device tree. The previous configuration resulted in the device not being under any power domain and being initialized as always ON. These changes ensure that the SSP driver is initialized with the appropriate power management state and that runtime power management is automatically enabled based on the device tree configuration. The functionality of the power management state remains unchanged, ensuring consistent behavior. Signed-off-by: Tomasz Leman <[email protected]>
This patch refactors the power management initialization for the Intel ADSP GPDMA driver. The changes include: 1. Replacing the conditional initialization of power management state with a call to `pm_device_driver_init` in the `intel_adsp_gpdma_init` function. 2. Ensuring that the GPDMA driver is initialized with the appropriate power management state and that runtime power management is automatically enabled based on the device tree configuration. These changes streamline the power management initialization process and ensure consistency with other drivers. Signed-off-by: Tomasz Leman <[email protected]>
SOF CI did not show any regression. |
This pull request refactors the power management initialization for the DMIC, SSP, and GPDMA drivers across ACE15, ACE20, and ACE30 generations.
The current implementation of power management initialization for these drivers does not fully comply with the recommended practices outlined in the documentation. This refactor addresses these issues, ensuring that the drivers are initialized correctly and consistently. The functionality of the power management state remains unchanged, ensuring consistent behavior across all three generations.
Changes: