linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] mx3fb: do not support panning with fb blanked
@ 2012-06-11  1:06 Liu Ying
  2012-06-11  1:06 ` [PATCH 2/3] mx3fb: support pan display with fb_set_var Liu Ying
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Liu Ying @ 2012-06-11  1:06 UTC (permalink / raw)
  To: linux-arm-kernel

This patch checks if framebuffer is unblanked before
we actually trigger panning in custom pan display
function.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
---
 drivers/video/mx3fb.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
index e3406ab..d53db60 100644
--- a/drivers/video/mx3fb.c
+++ b/drivers/video/mx3fb.c
@@ -1063,6 +1063,11 @@ static int mx3fb_pan_display(struct fb_var_screeninfo *var,
 	dev_dbg(fbi->device, "%s [%c]\n", __func__,
 		list_empty(&mx3_fbi->idmac_channel->queue) ? '-' : '+');
 
+	if (mx3_fbi->blank != FB_BLANK_UNBLANK) {
+		dev_dbg(fbi->device, "panning with fb blanked not supported\n");
+		return -EFAULT;
+	}
+
 	if (var->xoffset > 0) {
 		dev_dbg(fbi->device, "x panning not supported\n");
 		return -EINVAL;
-- 
1.7.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-07-02  6:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-11  1:06 [PATCH 1/3] mx3fb: do not support panning with fb blanked Liu Ying
2012-06-11  1:06 ` [PATCH 2/3] mx3fb: support pan display with fb_set_var Liu Ying
2012-07-02  6:28   ` Florian Tobias Schandinat
2012-06-11  1:06 ` [PATCH 3/3] mx3fb: avoid screen flash when panning " Liu Ying
2012-07-02  2:18   ` Liu Ying
2012-06-11  9:51 ` [PATCH 1/3] mx3fb: do not support panning with fb blanked Russell King - ARM Linux
2012-06-11 10:46   ` Liu Ying
2012-06-11 11:05     ` Russell King - ARM Linux
2012-06-11 11:18       ` Liu Ying

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).