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>
}
}
- 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);