summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiu Ying <Ying.Liu@freescale.com>2011-12-29 15:39:00 +0800
committerLiu Ying <Ying.Liu@freescale.com>2011-12-30 10:13:05 +0800
commit7a89d4c754143417ded4414167b13b615af841d5 (patch)
treed295937167c0a6dd8b79d57c67eccb24bcc74c4c
parentf3952d2b4c53ee537648c0838c66839b03f07995 (diff)
ENGR00171057 MXC IPUv3 fb:Disable (un)blank after system suspends
This patch disalbes blank or unblank operatint when system enters early suspend. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit 1e57360aa6f20a38ac7d5d863993a5f4ce8fcd6d)
-rw-r--r--drivers/video/mxc/mxc_ipuv3_fb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/mxc/mxc_ipuv3_fb.c b/drivers/video/mxc/mxc_ipuv3_fb.c
index 6e5b5b67be82..f28e2e6cde45 100644
--- a/drivers/video/mxc/mxc_ipuv3_fb.c
+++ b/drivers/video/mxc/mxc_ipuv3_fb.c
@@ -1226,6 +1226,9 @@ static int mxcfb_blank(int blank, struct fb_info *info)
dev_dbg(info->device, "blank = %d\n", blank);
+ if (mxc_fbi->fb_suspended)
+ return -EAGAIN;
+
if (mxc_fbi->cur_blank == blank)
return 0;