From patchwork Thu Jul 15 12:37:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MAYURESH JANORKAR X-Patchwork-Id: 112226 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6FCbGJ6003382 for ; Thu, 15 Jul 2010 12:37:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756652Ab0GOMhO (ORCPT ); Thu, 15 Jul 2010 08:37:14 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:41374 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756081Ab0GOMhN (ORCPT ); Thu, 15 Jul 2010 08:37:13 -0400 Received: from dflp51.itg.ti.com ([128.247.22.94]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o6FCb82j020140 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Jul 2010 07:37:08 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dflp51.itg.ti.com (8.13.7/8.13.7) with ESMTP id o6FCb5oC001797; Thu, 15 Jul 2010 07:37:05 -0500 (CDT) Received: from localhost (omaplbp.india.ti.com [172.24.190.217]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o6FCb3P15752; Thu, 15 Jul 2010 07:37:04 -0500 (CDT) From: Mayuresh Janorkar To: tomi.valkeinen@nokia.com Cc: linux-omap@vger.kernel.org, Gustavo Diaz Prado , Mayuresh Janorkar Subject: [PATCH] omap4: fb: Adds missing display update call when panning Date: Thu, 15 Jul 2010 18:07:02 +0530 Message-Id: <1279197422-23662-1-git-send-email-mayur@ti.com> X-Mailer: git-send-email 1.5.4.7 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 15 Jul 2010 12:37:35 +0000 (UTC) diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 4abb1d1..12d5382 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -1068,7 +1068,8 @@ static int omapfb_pan_display(struct fb_var_screeninfo *var, { struct omapfb_info *ofbi = FB2OFB(fbi); struct fb_var_screeninfo new_var; - int r; + int r = 0; + struct omap_dss_device *display = fb2display(fbi); DBG("pan_display(%d)\n", FB2OFB(fbi)->id); @@ -1086,6 +1087,11 @@ static int omapfb_pan_display(struct fb_var_screeninfo *var, r = omapfb_apply_changes(fbi, 0); + if (display && display->driver->update && + display->driver->get_update_mode(display) + == OMAP_DSS_UPDATE_MANUAL) + display->driver->update(display, 0, 0, var->xres, var->yres); + omapfb_put_mem_region(ofbi->region); return r;