summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>2018-10-09 08:50:42 +0300
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:34:26 +0800
commita1f6cc8c42432e2cde90071d7c17e4db85b9a3ba (patch)
tree19194bd35191905796f48bacf1857796251bc701
parentff2f1f2c99768a1c557ea784951155a49b7c634c (diff)
MLK-19845: drm/imx/dcss: fix suspend/resume issue
While running suspend/resume tests it may happen to go to suspend while CTXLD still has entries to be commited. Currently, when this happens, the scaler freezes. This patch will fire up context loader just before going to suspend, thus commiting everything to DCSS before cutting off the clocks. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
-rw-r--r--drivers/gpu/imx/dcss/dcss-ctxld.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/imx/dcss/dcss-ctxld.c b/drivers/gpu/imx/dcss/dcss-ctxld.c
index 248c68ce2a41..3162f7cf7c20 100644
--- a/drivers/gpu/imx/dcss/dcss-ctxld.c
+++ b/drivers/gpu/imx/dcss/dcss-ctxld.c
@@ -451,6 +451,8 @@ int dcss_ctxld_suspend(struct dcss_soc *dcss)
int wait_time_ms = 0;
unsigned long flags;
+ dcss_ctxld_kick(dcss);
+
while (ctxld->in_use && wait_time_ms < 500) {
msleep(20);
wait_time_ms += 20;