Received: by 10.223.176.46 with SMTP id f43csp1657002wra; Sun, 21 Jan 2018 01:32:24 -0800 (PST) X-Google-Smtp-Source: AH8x225Ivp1eh6xdliKCtmCeInnRc6uxaSoaJBAXTg9oUkCk1YRIZSMEwEoammfJTRY08tV0Yx4m X-Received: by 2002:a17:902:ab8d:: with SMTP id f13-v6mr1874695plr.215.1516527144414; Sun, 21 Jan 2018 01:32:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516527144; cv=none; d=google.com; s=arc-20160816; b=FQcMMpAj9yZnsZeRcBAQPJ/bBLrmjtNcGH4j1rAAdoDLXdrHp3iOkNRs/WE2jz8isg hplGDTFsLHklO99JBRZQFRggL/vCMbMuPCFyDGUnHKfkKDH93BGibuQy9Q33gVU2dDFM bvxcplwMAp4CLtndUv/MCs53Dcz9YPOdM+t/FeqPs/1MF6jiHOkPNSCQOpVjtraImpvl TiAc5goe7NUHyQl+XOsNEDVno/wTzdWtCls2X7Jj9n3R55WKhhg/O7YPwP8pJWYngXq6 5xND32V7GpPZEC+q1/3P6OZQ7OiiR5eCm/9lzFNFn8hU7WJuVV4sNr2fOr6qSnNr2CpZ JVAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=66TST5XxjI55wKfgZbGMJggaXq+k4EHxL7ZQhpfVoMI=; b=Bjds58XjFomSZD4KUTnxeqs7/q0M/pPq8NjcJIl0dHG/2zzZf1JpXPl/JZnKVWxAq8 GrXlLsct+GChrXU9mE+wdwPWNdFzZoGxL0wifqwSSsBFFgauBzvj8Uwd3xbe+faSIqfb KPN0DfUNzl86Qp7Kt9jMVOODFkYtJnOr3ncvNCBM1rEA/eGXlfBGtvSgQnFgLPTwcQ+C nOuZGBMd12Y3tKbaVjvWXjMyJ5WtCOxo4ErRfVbmh9H6r87Lar4AQ9eOvQjm4UC9BF0i fKueu8FR5jGjJNl4RUsJYuxrl2chOTiRtLyvrc7Frfg4ruFbTa8irbJjbYnX4Gm4x+Hp bcaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8si7905945pgq.446.2018.01.21.01.31.59; Sun, 21 Jan 2018 01:32:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751079AbeAUJb2 (ORCPT + 99 others); Sun, 21 Jan 2018 04:31:28 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:54227 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876AbeAUJb0 (ORCPT ); Sun, 21 Jan 2018 04:31:26 -0500 X-Originating-IP: 37.177.9.11 Received: from w540 (unknown [37.177.9.11]) (Authenticated sender: jacopo@jmondi.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 6FD8DFB881; Sun, 21 Jan 2018 10:31:19 +0100 (CET) Date: Sun, 21 Jan 2018 10:31:17 +0100 From: jacopo mondi To: Laurent Pinchart Cc: Sakari Ailus , Hans Verkuil , Jacopo Mondi , magnus.damm@gmail.com, geert@glider.be, mchehab@kernel.org, festevam@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, pombredanne@nexb.com, linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, linux-sh@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 6/9] media: i2c: ov772x: Remove soc_camera dependencies Message-ID: <20180121093117.GK24926@w540> References: <1516139101-7835-1-git-send-email-jacopo+renesas@jmondi.org> <00f1dd19-6420-26ab-0529-a97f2b0de682@xs4all.nl> <20180119111917.76wosrokgracbdrz@valkosipuli.retiisi.org.uk> <2694661.NEH0HeGgLD@avalon> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2694661.NEH0HeGgLD@avalon> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Hans, Laurent, Sakari, On Fri, Jan 19, 2018 at 02:23:21PM +0200, Laurent Pinchart wrote: > Hello, > > On Friday, 19 January 2018 13:19:18 EET Sakari Ailus wrote: > > On Fri, Jan 19, 2018 at 11:47:33AM +0100, Hans Verkuil wrote: > > > On 01/19/18 11:24, Hans Verkuil wrote: > > >> On 01/16/18 22:44, Jacopo Mondi wrote: > > >>> Remove soc_camera framework dependencies from ov772x sensor driver. > > >>> - Handle clock and gpios > > >>> - Register async subdevice > > >>> - Remove soc_camera specific g/s_mbus_config operations > > >>> - Change image format colorspace from JPEG to SRGB as the two use the > > >>> same colorspace information but JPEG makes assumptions on color > > >>> components quantization that do not apply to the sensor > > >>> - Remove sizes crop from get_selection as driver can't scale > > >>> - Add kernel doc to driver interface header file > > >>> - Adjust build system > > >>> > > >>> This commit does not remove the original soc_camera based driver as > > >>> long as other platforms depends on soc_camera-based CEU driver. > > >>> > > >>> Signed-off-by: Jacopo Mondi > > >>> Reviewed-by: Laurent Pinchart > > >> > > >> Acked-by: Hans Verkuil > > > > > > Un-acked. > > > > > > I just noticed that this sensor driver has no enum_frame_interval and > > > g/s_parm support. How would a driver ever know the frame rate of the > > > sensor without that? Does it make any difference if I point out that this series hasn't removed any of that code, and the driver was not supporting that already? Or was it handled through soc_camera? > > > > s/_parm/_frame_interval/ ? > > > > We should have wrappers for this or rather to convert g/s_parm users to > > g/s_frame_interval so drivers don't need to implement both. > > There are two ways to set the frame interval, either explicitly through the > s_frame_interval operation, or implicitly through control of the pixel clock, > horizontal blanking and vertical blanking (which in turn can be influenced by > the exposure time). > > Having two ways to perform the same operation seems sub-optimal to me, but I > could understand if they covered different use cases. As far as I know we > don't document the use cases for those methods. What's your opinion on that ? > -If- I have to implement that in this series to have it accepted, please let me know which one of the two is the preferred one :) Thanks j > -- > Regards, > > Laurent Pinchart >