summaryrefslogtreecommitdiff
path: root/drivers/gpu/imx/lcdifv3
diff options
context:
space:
mode:
authorFancy Fang <chen.fang@nxp.com>2020-06-10 10:29:15 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2021-11-02 16:43:46 +0800
commit96cbd6b0200dca994efa148b4ea7427e444ea2b6 (patch)
treeaa9e9c9c295bc78bcd9835b0cb5365693d462be9 /drivers/gpu/imx/lcdifv3
parent0d0ce20fd0d08065904f437ab81b53908d9ed68c (diff)
MLK-24293 gpu/imx: lcdifv3: use late system sleep pm ops
In imx_drm_suspend() and imx_drm_resume(), the display pipeline will be disabled and enabled respectively, so the correct suspend sequence should be master first to disable the pipeline, and then the components can be suspended, and resume sequence is obviously opposite. So, to satisfy this sequence, use the late system sleep PM ops to replace normal sleep PM ops for this purpose. Signed-off-by: Fancy Fang <chen.fang@nxp.com> Reviewed-by: Liu Ying <victor.liu@nxp.com> (cherry picked from commit fb41895e4f4c6e5787831940cde1a5ba7a8204a7)
Diffstat (limited to 'drivers/gpu/imx/lcdifv3')
-rw-r--r--drivers/gpu/imx/lcdifv3/lcdifv3-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/imx/lcdifv3/lcdifv3-common.c b/drivers/gpu/imx/lcdifv3/lcdifv3-common.c
index cd2ce99caf9f..0312f9ecf62f 100644
--- a/drivers/gpu/imx/lcdifv3/lcdifv3-common.c
+++ b/drivers/gpu/imx/lcdifv3/lcdifv3-common.c
@@ -770,7 +770,8 @@ static int imx_lcdifv3_resume(struct device *dev)
#endif
static const struct dev_pm_ops imx_lcdifv3_pm_ops = {
- SET_SYSTEM_SLEEP_PM_OPS(imx_lcdifv3_suspend, imx_lcdifv3_resume)
+ SET_LATE_SYSTEM_SLEEP_PM_OPS(imx_lcdifv3_suspend,
+ imx_lcdifv3_resume)
SET_RUNTIME_PM_OPS(imx_lcdifv3_runtime_suspend,
imx_lcdifv3_runtime_resume, NULL)
};