Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751798Ab2FKJvV (ORCPT ); Mon, 11 Jun 2012 05:51:21 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:53699 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751193Ab2FKJvU (ORCPT ); Mon, 11 Jun 2012 05:51:20 -0400 Date: Mon, 11 Jun 2012 10:51:02 +0100 From: Russell King - ARM Linux To: Liu Ying Cc: g.liakhovetski@gmx.de, linux-fbdev@vger.kernel.org, FlorianSchandinat@gmx.de, liu.y.victor@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/3] mx3fb: do not support panning with fb blanked Message-ID: <20120611095102.GD11168@n2100.arm.linux.org.uk> References: <1339376810-8247-1-git-send-email-Ying.Liu@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1339376810-8247-1-git-send-email-Ying.Liu@freescale.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1148 Lines: 30 On Mon, Jun 11, 2012 at 09:06:48AM +0800, Liu Ying wrote: > This patch checks if framebuffer is unblanked before > we actually trigger panning in custom pan display > function. > > Signed-off-by: Liu Ying > --- > 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; > + } Why is this an error, and why return -EFAULT? What userspace access failed? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/