power_domain: intel_adsp: correct function call order

Changing function call order. We need to first power-up the power domain
before we turn on the devices.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
This commit is contained in:
Tomasz Leman 2023-02-06 13:57:19 +01:00 committed by Anas Nashif
parent c9d70bb986
commit cdc39c9482

View file

@ -38,8 +38,8 @@ static int pd_intel_adsp_pm_action(const struct device *dev, enum pm_device_acti
switch (action) {
case PM_DEVICE_ACTION_RESUME:
pm_device_children_action_run(dev, PM_DEVICE_ACTION_TURN_ON, NULL);
pd_intel_adsp_set_power_enable(reg_bits, true);
pm_device_children_action_run(dev, PM_DEVICE_ACTION_TURN_ON, NULL);
break;
case PM_DEVICE_ACTION_SUSPEND:
pm_device_children_action_run(dev, PM_DEVICE_ACTION_TURN_OFF, NULL);