]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: ti: davinci-mcasp: Add system suspend/resume support
authorSen Wang <sen@ti.com>
Wed, 11 Feb 2026 22:10:01 +0000 (16:10 -0600)
committerMark Brown <broonie@kernel.org>
Sun, 22 Feb 2026 23:52:22 +0000 (23:52 +0000)
The McASP driver supports runtime PM callbacks for register save/restore
during device idle, but doesn't provide system suspend/resume callbacks.
This causes audio to fail to resume after system suspend.

Since the driver already handles runtime suspend & resume, we can reuse
existing runtime PM logics.

Signed-off-by: Sen Wang <sen@ti.com>
Link: https://patch.msgid.link/20260211221001.155843-1-sen@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/davinci-mcasp.c

index 2d260fbc9b8351c9f25f0794670d528fdc9716a2..14267be4a288a268c18140828a75f03705204ec1 100644 (file)
@@ -2823,6 +2823,8 @@ static int davinci_mcasp_runtime_resume(struct device *dev)
 #endif
 
 static const struct dev_pm_ops davinci_mcasp_pm_ops = {
+       SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
+                               pm_runtime_force_resume)
        SET_RUNTIME_PM_OPS(davinci_mcasp_runtime_suspend,
                           davinci_mcasp_runtime_resume,
                           NULL)