From patchwork Fri Jul 2 20:54:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grazvydas Ignotas X-Patchwork-Id: 109960 X-Patchwork-Delegate: tomi.valkeinen@nokia.com 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 o62Kt5ak032184 for ; Fri, 2 Jul 2010 20:55:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757489Ab0GBUzB (ORCPT ); Fri, 2 Jul 2010 16:55:01 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:55102 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757479Ab0GBUzA (ORCPT ); Fri, 2 Jul 2010 16:55:00 -0400 Received: by wyf23 with SMTP id 23so1319466wyf.19 for ; Fri, 02 Jul 2010 13:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=DMtM7ZbZZDYG48ESdzmhyvIY26G3FgaWIpQD1a7Aeoo=; b=wwYUnAdaWag5daF+J34VtsvKet9eULAseZri8CdCK2C1XJDJCzhEHe2UsSwZSss64o b3+aWOXSYkNQbeM8DpHZpyMiBV++MTdTUPi/4E+MkvBVZNUagQEKyN1krXGk7OL4Kx1G eG1LvoIYZfAPwUSx/YilPZaTbE6UbEY/neQTQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=r5S0e1scZI1sw1BDzAswMZX63Ar4AKvJwCsJldFX9DRIIBiIpIdReSJ2wnM5YOT0Ah JHFz1BGxofolHTaN+6ioawseQe+34P+hscQZ2rxEdT7+x6RxBD0JKl25N+e82Z2ZHuFI y6SU12vB3RSni8Ewgw0h21R4BidOqUrclAoEc= Received: by 10.213.29.210 with SMTP id r18mr1175567ebc.81.1278104098757; Fri, 02 Jul 2010 13:54:58 -0700 (PDT) Received: from localhost.localdomain (ip-88-119-226-136.static.b4net.lt [88.119.226.136]) by mx.google.com with ESMTPS id a48sm8760572eei.13.2010.07.02.13.54.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 02 Jul 2010 13:54:56 -0700 (PDT) From: Grazvydas Ignotas To: linux-fbdev@vger.kernel.org Cc: linux-omap@vger.kernel.org, Tomi Valkeinen , Vaibhav Hiremath , Grazvydas Ignotas Subject: [PATCH] OMAP: DSS2: OMAPFB: add support for FBIO_WAITFORVSYNC Date: Fri, 2 Jul 2010 23:54:56 +0300 Message-Id: <1278104096-27809-1-git-send-email-notasas@gmail.com> X-Mailer: git-send-email 1.6.3.3 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]); Fri, 02 Jul 2010 20:55:05 +0000 (UTC) diff --git a/drivers/video/omap2/omapfb/omapfb-ioctl.c b/drivers/video/omap2/omapfb/omapfb-ioctl.c index 9c73618..32fab5a 100644 --- a/drivers/video/omap2/omapfb/omapfb-ioctl.c +++ b/drivers/video/omap2/omapfb/omapfb-ioctl.c @@ -490,6 +490,7 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg) struct omapfb_vram_info vram_info; struct omapfb_tearsync_info tearsync_info; struct omapfb_display_info display_info; + u32 crt; } p; int r = 0; @@ -648,6 +649,17 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg) r = -EFAULT; break; + case FBIO_WAITFORVSYNC: + if (get_user(p.crt, (__u32 __user *)arg)) { + r = -EFAULT; + break; + } + if (p.crt != 0) { + r = -ENODEV; + break; + } + /* FALLTHROUGH */ + case OMAPFB_WAITFORVSYNC: DBG("ioctl WAITFORVSYNC\n"); if (!display) {