diff options
| author | Liu Ying <Ying.Liu@freescale.com> | 2015-11-20 13:50:20 +0800 |
|---|---|---|
| committer | Nitin Garg <nitin.garg@nxp.com> | 2016-01-14 11:02:23 -0600 |
| commit | 0b205e36656552e477d0968ca7f95412ff64ea2e (patch) | |
| tree | 6944cbe86e868fa7fc71bcf16e0a0339aaa81fa6 | |
| parent | 038bc046d940b362ff6c7f924cd3d34f89fe20b9 (diff) | |
MLK-11881 video: fbdev: mxc ipuv3 fb: Correct ->prefetch in ioctrl SET_PREFETCH
When a framebuffer is blanked, the user may call the MXCFB_SET_PREFETCH ioctrl
to enable or disable the prefetch engine. After sanity check, the cached
->prefetch should reflect the user's intention for next unblank operation
any way instead of checking ->cur_prefetch first.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
| -rw-r--r-- | drivers/video/fbdev/mxc/mxc_ipuv3_fb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/fbdev/mxc/mxc_ipuv3_fb.c b/drivers/video/fbdev/mxc/mxc_ipuv3_fb.c index 3af13e6f0e46..eb9b2f24842d 100644 --- a/drivers/video/fbdev/mxc/mxc_ipuv3_fb.c +++ b/drivers/video/fbdev/mxc/mxc_ipuv3_fb.c @@ -2047,15 +2047,15 @@ static int mxcfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg) } } - if (mxc_fbi->cur_prefetch == !!enable) - break; - retval = mxcfb_check_var(&fbi->var, fbi); if (retval) break; mxc_fbi->prefetch = !!enable; + if (mxc_fbi->cur_prefetch == mxc_fbi->prefetch) + break; + fbi->var.activate = (fbi->var.activate & ~FB_ACTIVATE_MASK) | FB_ACTIVATE_NOW | FB_ACTIVATE_FORCE; retval = mxcfb_set_par(fbi); |
