ASoC: SDCA: Set suspended flag after resuming within system suspend

drv->suspended path was executed before system suspension instead of
after, move it lower to correct it.

Fixes: 7a5214f769 ("ASoC: SDCA: Add basic system suspend support")
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260924095458.2683755-2-mstrozek@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Maciej Strozek 2026-09-24 10:54:57 +01:00 committed by Mark Brown
parent 93f51579e7
commit b16610e377
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -490,8 +490,6 @@ static int class_function_suspend(struct device *dev)
struct class_function_drv *drv = auxiliary_get_drvdata(auxdev);
int ret;
drv->suspended = true;
/* Ensure runtime resume runs on resume */
ret = pm_runtime_resume_and_get(dev);
if (ret) {
@ -499,6 +497,8 @@ static int class_function_suspend(struct device *dev)
return ret;
}
drv->suspended = true;
sdca_irq_disable(drv->function, drv->core->irq_info);
ret = pm_runtime_force_suspend(dev);