MLK-17074-9 ASoC: cs42xx8: force suspend/resume during system suspend/resume
authorDong Aisheng <aisheng.dong@nxp.com>
Mon, 27 Nov 2017 04:58:17 +0000 (12:58 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:49:59 +0000 (14:49 -0500)
Use force_suspend/resume to make sure clocks are disabled/enabled
accordingly during system suspend/resume.

Reviewed-by: Frank Li <frank.li@nxp.com>
Reviewed-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
sound/soc/codecs/cs42xx8.c

index 2db5b05..43cdd06 100644 (file)
@@ -688,6 +688,7 @@ static int cs42xx8_runtime_suspend(struct device *dev)
 #endif
 
 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)
 };
 EXPORT_SYMBOL_GPL(cs42xx8_pm);