MLK-11920 video: fbdev: mxc ipuv3 fb: Use fb_set_var() to unblank a framebuffer
authorLiu Ying <Ying.Liu@freescale.com>
Tue, 8 Dec 2015 09:20:16 +0000 (17:20 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:33 +0000 (14:49 -0500)
The resolution of an overlay framebuffer could be at most the same to the
one of the relevant background framebuffer.  However, the resolution of a
HDMI monitor could be changed at runtime.  Thus, when we unblank the overlay
framebuffer, we should check it's resolution and start position in case it
exceeds the boundary of the background framebuffer.  This patch replaces
mxcfb_set_par() with fb_set_var() to implement the unblank operation so that
the logic contains the ->fb_check_var() path.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
drivers/video/fbdev/mxc/mxc_ipuv3_fb.c

index 38ea948..5535138 100644 (file)
@@ -2338,7 +2338,7 @@ static int mxcfb_blank(int blank, struct fb_info *info)
        case FB_BLANK_UNBLANK:
                info->var.activate = (info->var.activate & ~FB_ACTIVATE_MASK) |
                                FB_ACTIVATE_NOW | FB_ACTIVATE_FORCE;
-               ret = mxcfb_set_par(info);
+               ret = fb_set_var(info, &info->var);
                break;
        }
        if (!ret)