driver: ssp: set initial state as off

Since the device need to be first powered-up by the power domain, it has
more sense that device is in off state at the beginning.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
This commit is contained in:
Tomasz Leman 2023-03-16 23:16:33 +01:00 committed by Carles Cufí
parent 9f207ef650
commit 0a00253313

View file

@ -2144,11 +2144,13 @@ static int ssp_pm_action(const struct device *dev, enum pm_device_action action)
static int ssp_init(const struct device *dev)
{
int ret;
if (pm_device_on_power_domain(dev)) {
pm_device_init_off(dev);
} else {
pm_device_init_suspended(dev);
}
pm_device_init_suspended(dev);
ret = pm_device_runtime_enable(dev);
return ret;
return pm_device_runtime_enable(dev);
}
static struct dai_driver_api dai_intel_ssp_api_funcs = {