Commit b429ca49 authored by Shengjiu Wang's avatar Shengjiu Wang Committed by Mark Brown

ASoC: cs42xx8: Force suspend/resume during system suspend/resume

Use force_suspend/resume to make sure clocks are disabled/enabled
accordingly during system suspend/resume.
Signed-off-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: default avatarShengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/1566944026-18113-1-git-send-email-shengjiu.wang@nxp.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6f437917
...@@ -684,6 +684,8 @@ static int cs42xx8_runtime_suspend(struct device *dev) ...@@ -684,6 +684,8 @@ static int cs42xx8_runtime_suspend(struct device *dev)
#endif #endif
const struct dev_pm_ops cs42xx8_pm = { const struct dev_pm_ops cs42xx8_pm = {
SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
pm_runtime_force_resume)
SET_RUNTIME_PM_OPS(cs42xx8_runtime_suspend, cs42xx8_runtime_resume, NULL) SET_RUNTIME_PM_OPS(cs42xx8_runtime_suspend, cs42xx8_runtime_resume, NULL)
}; };
EXPORT_SYMBOL_GPL(cs42xx8_pm); EXPORT_SYMBOL_GPL(cs42xx8_pm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment