MLK-16242-7 video: fbdev: dcss: add non-blocking mode in pan display
authorFancy Fang <chen.fang@nxp.com>
Tue, 22 Aug 2017 08:56:24 +0000 (16:56 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:44 +0000 (15:36 -0500)
Add non-blocking mode for pan display interface to
support very special cases to focus on the maximum
FPS display.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
drivers/video/fbdev/mxc/imx_dcss.c

index 610d943..122c5e5 100644 (file)
@@ -2550,8 +2550,10 @@ static int dcss_pan_display(struct fb_var_screeninfo *var,
                return ret;
        }
 
-       /* make pan display synchronously */
-       flush_workqueue(info->ctxld_wq);
+       /* TODO: blocking mode */
+       if (likely(!var->reserved[2]))
+               /* make pan display synchronously */
+               flush_workqueue(info->ctxld_wq);
 
        return 0;
 }