From patchwork Fri Jun 21 17:04:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 19030 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1Uq4mQ-0007vD-TD; Fri, 21 Jun 2013 19:05:46 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.72/mailfrontend-6) with esmtp id 1Uq4mO-0004eF-5m; Fri, 21 Jun 2013 19:05:46 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423489Ab3FURFj (ORCPT + 1 other); Fri, 21 Jun 2013 13:05:39 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:59747 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423404Ab3FURFh (ORCPT ); Fri, 21 Jun 2013 13:05:37 -0400 Received: from axis700.grange (dslb-084-061-108-118.pools.arcor-ip.net [84.61.108.118]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MdFJL-1UZMrW3KfT-00IAcC; Fri, 21 Jun 2013 19:04:54 +0200 Received: by axis700.grange (Postfix, from userid 1000) id 4FFBC40BB4; Fri, 21 Jun 2013 19:04:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id 4556540BB3; Fri, 21 Jun 2013 19:04:53 +0200 (CEST) Date: Fri, 21 Jun 2013 19:04:53 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: Linux Media Mailing List cc: Hans Verkuil , Mauro Carvalho Chehab , Laurent Pinchart Subject: [GIT PULL] V4L2: clock and async probing APIs, soc-camera example implementation Message-ID: MIME-Version: 1.0 X-Provags-ID: V02:K0:ew1Nfeo/nP0qxRTkTbqCraXODH4adGU7qIfPVYzp6/N FISqnE81+ovwcrFTz6/aR7cqD0CiQcq6v3WATEHgZlk/jugzOh tLogP+HebpCVXvuEs9jYYEvzTz6Mq4x71HzV1r0rD/ROdHY+N0 FAokkO5Uu1ep7JsCwGFfvtMmjU1oPDdIiXDdq2aFnJDGaZ8uNG iImd69Nth4Avlqz7Y8FvoohcAh4ZbAPHv/UMPI/gLzz2N2A2B/ CYkR9R4TttCEUhHouUWF2ZkdU29Zb6dWbi2zOJe4Q84wlTPRz2 N39d59cYWrCQddBoMMsRczCWnlkcYT/83ADLJE4zazBiEZyMky bFylHqHimlawqLwVtWHCzGNrJKwIaqRVkSMfGUmA5b52MwY0dk ULlacOM8HOdCw== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.6.21.165720 X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, MSGID_ADDED_BY_MTA 0.05, BODY_SIZE_5000_5999 0, BODY_SIZE_7000_LESS 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MULTIPLE_RCPTS_CC_X2 0, __PHISH_SPEAR_STRUCTURE_1 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __URI_NS ' Hi Mauro With acks from Hans and Laurent I'd like to ask you to pull my V4L2 clock and asynchronous probing APIs together with respective soc-camera changes. I included an ack from Laurent, even though he requested me to include the documentation update into this pull request, which I haven't done yet. But we agreed privately, that it's also ok, if I submit a v2 of the patch first to the list next Monday and then send an additional pull request for it some time next week. The last patch from the patch series, as I posted it to the list last time is also omitted, because (1) it's for arch/arm, (2) the board, which I used as an example to develop and test these patches will be removed from the kernel, so, I'll need to pick up a different platform for testing, also a different camera host driver, perhaps. The following changes since commit 4ef72e347112a834fbd6944565b1f63d4af19c8a: [media] V4L2: soc-camera: remove unneeded include path (2013-06-21 13:11:59 -0300) are available in the git repository at: git://linuxtv.org/gliakhovetski/v4l-dvb.git for-3.11-2 Guennadi Liakhovetski (20): soc-camera: move common code to soc_camera.c soc-camera: add host clock callbacks to start and stop the master clock pxa-camera: move interface activation and deactivation to clock callbacks omap1-camera: move interface activation and deactivation to clock callbacks atmel-isi: move interface activation and deactivation to clock callbacks mx3-camera: move interface activation and deactivation to clock callbacks mx2-camera: move interface activation and deactivation to clock callbacks mx1-camera: move interface activation and deactivation to clock callbacks sh-mobile-ceu-camera: move interface activation and deactivation to clock callbacks soc-camera: make .clock_{start,stop} compulsory, .add / .remove optional soc-camera: don't attach the client to the host during probing sh-mobile-ceu-camera: add primitive OF support sh-mobile-ceu-driver: support max width and height in DT V4L2: add temporary clock helpers V4L2: add a device pointer to struct v4l2_subdev V4L2: support asynchronous subdevice registration soc-camera: switch I2C subdevice drivers to use v4l2-clk soc-camera: add V4L2-async support sh_mobile_ceu_camera: add asynchronous subdevice probing support imx074: support asynchronous probing .../devicetree/bindings/media/sh_mobile_ceu.txt | 18 + drivers/media/i2c/soc_camera/imx074.c | 32 +- drivers/media/i2c/soc_camera/mt9m001.c | 17 +- drivers/media/i2c/soc_camera/mt9m111.c | 20 +- drivers/media/i2c/soc_camera/mt9t031.c | 19 +- drivers/media/i2c/soc_camera/mt9t112.c | 25 +- drivers/media/i2c/soc_camera/mt9v022.c | 17 +- drivers/media/i2c/soc_camera/ov2640.c | 19 +- drivers/media/i2c/soc_camera/ov5642.c | 20 +- drivers/media/i2c/soc_camera/ov6650.c | 17 +- drivers/media/i2c/soc_camera/ov772x.c | 15 +- drivers/media/i2c/soc_camera/ov9640.c | 17 +- drivers/media/i2c/soc_camera/ov9640.h | 1 + drivers/media/i2c/soc_camera/ov9740.c | 18 +- drivers/media/i2c/soc_camera/rj54n1cb0c.c | 17 +- drivers/media/i2c/soc_camera/tw9910.c | 24 +- drivers/media/platform/soc_camera/atmel-isi.c | 38 +- drivers/media/platform/soc_camera/mx1_camera.c | 48 +- drivers/media/platform/soc_camera/mx2_camera.c | 41 +- drivers/media/platform/soc_camera/mx3_camera.c | 44 +- drivers/media/platform/soc_camera/omap1_camera.c | 41 +- drivers/media/platform/soc_camera/pxa_camera.c | 46 +- .../platform/soc_camera/sh_mobile_ceu_camera.c | 243 +++++-- drivers/media/platform/soc_camera/sh_mobile_csi2.c | 153 +++-- drivers/media/platform/soc_camera/soc_camera.c | 707 +++++++++++++++++--- .../platform/soc_camera/soc_camera_platform.c | 2 +- drivers/media/v4l2-core/Makefile | 3 +- drivers/media/v4l2-core/v4l2-async.c | 280 ++++++++ drivers/media/v4l2-core/v4l2-clk.c | 242 +++++++ drivers/media/v4l2-core/v4l2-common.c | 2 + include/media/sh_mobile_ceu.h | 2 + include/media/sh_mobile_csi2.h | 2 +- include/media/soc_camera.h | 39 +- include/media/v4l2-async.h | 105 +++ include/media/v4l2-clk.h | 54 ++ include/media/v4l2-subdev.h | 10 + 36 files changed, 1973 insertions(+), 425 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/sh_mobile_ceu.txt create mode 100644 drivers/media/v4l2-core/v4l2-async.c create mode 100644 drivers/media/v4l2-core/v4l2-clk.c create mode 100644 include/media/v4l2-async.h create mode 100644 include/media/v4l2-clk.h Thanks Guennadi Acked-by: Lad, Prabhakar Acked-by: Lad, Prabhakar Tested-by: Lad, Prabhakar --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html