MLK-17089-6: ASoC: wm8962: support suspend & resume for imx8
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 6 Dec 2017 02:48:20 +0000 (10:48 +0800)
committerShengjiu Wang <shengjiu.wang@nxp.com>
Thu, 9 May 2019 10:45:07 +0000 (18:45 +0800)
Base on latest power management design in MLK-17074, every driver
need to enter runtime suspend state in suspend, so the driver should
call the pm_runtime_force_suspend in suspend.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit b1003fc0341910b3e5fc94e5e04bed9ecfdb786d)

sound/soc/codecs/wm8962.c

index 383a12e..ddc549d 100644 (file)
@@ -3879,6 +3879,7 @@ static int wm8962_runtime_suspend(struct device *dev)
 #endif
 
 static const struct dev_pm_ops wm8962_pm = {
+       SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
        SET_RUNTIME_PM_OPS(wm8962_runtime_suspend, wm8962_runtime_resume, NULL)
 };