mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
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:
parent
93f51579e7
commit
b16610e377
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user