MLK-17112 gpu: imx: dpu: Ensure the dpu core is late suspended & early resumed
authorLiu Ying <victor.liu@nxp.com>
Thu, 7 Dec 2017 08:53:02 +0000 (16:53 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:50:30 +0000 (14:50 -0500)
The dpu core driver needs to do some cleanup work for the
upper layer drivers, so it should be late suspended and
early resumed.  This patch ensures this by changing driver
PM hook definitions to use SET_LATE_SYSTEM_SLEEP_PM_OPS
instead of SET_SYSTEM_SLEEP_PM_OPS.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
drivers/gpu/imx/dpu/dpu-common.c

index 9249edf..8d0ea76 100644 (file)
@@ -1571,7 +1571,9 @@ static int dpu_resume(struct device *dev)
 }
 #endif
 
-static SIMPLE_DEV_PM_OPS(dpu_pm_ops, dpu_suspend, dpu_resume);
+static const struct dev_pm_ops dpu_pm_ops = {
+       SET_LATE_SYSTEM_SLEEP_PM_OPS(dpu_suspend, dpu_resume)
+};
 
 static struct platform_driver dpu_driver = {
        .driver = {