Received: by 10.213.65.68 with SMTP id h4csp26636imn; Thu, 15 Mar 2018 08:32:26 -0700 (PDT) X-Google-Smtp-Source: AG47ELtFpB8Hl4H9oAWhlbKy1Agm+JO7c5yA4BJ+eoV1ZAlMe8QZCZDYhXGvTUybxs9AAcDcm+rr X-Received: by 10.99.126.19 with SMTP id z19mr7045605pgc.108.1521127946392; Thu, 15 Mar 2018 08:32:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521127946; cv=none; d=google.com; s=arc-20160816; b=Bl9lxHfvUolRTpaXJuLDrYQbTIJAW6rrZ3dBdMZ/Dn3EQrpqycXdmSPqILm/E4nISg esJAdAiYf3b0pFx0H+QtdQjJC8M4tZVHwe2guYGSVrOKc7nWhDmxeEQiCudSIkz4uZ6s 59kBYAhuQQzFtRY/wLJnlISzH4arU99gY5JT/D4sj079nhAsnbahvKS8qcIxZPHsPCe8 SCQ5pbz8tSH3AckhsI7I7tBYvcBQhD4N3AIh4XtzL1athgj76Utok74hGqavTGLtXeXd EeoniBSsotzic28Nu2hcuJnQ8uOtXcmAULwNJrbnRw6wJVgQKN66y5xq9bgQGNoW/+/q 0Mbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=JRoUrGgpalyqjniPNiB4Yot7CSOUymSExdK3XOUWe08=; b=VgzCnT4JuaPOE8zkPssGEmeFPW1TSRJBIg+16nUqnXImRHYS7t8QBmiOde3wtuLcai Py3TY1Qbiy78pkTWIbB/avvxvR269COhTwjRnwAJQfmvK6l8oz6+5twOJoCHNcO0ztlv MILn5t+52+dYR4Kv+WRzMj3BvH45DANWNKIK9HT0RBG2pmUddox2oCPBpi6rU9ha460y iS+0pkGF6J3/A70U9fvlGavEuCuPpmYBYTOfSVpZ2LEFvd4rWTlN+mMSr50O9EQRFXTr FLX2hrAWAIdVAXyWxdbCTyPdeG9pEaqwBLGjfjIipe3Kd6fbBocE1Naa0HvWekEJ5Nx9 +eZA== 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 d10si558216pfg.219.2018.03.15.08.31.48; Thu, 15 Mar 2018 08:32:26 -0700 (PDT) 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 S932457AbeCOPac (ORCPT + 99 others); Thu, 15 Mar 2018 11:30:32 -0400 Received: from lb1-smtp-cloud8.xs4all.net ([194.109.24.21]:36594 "EHLO lb1-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932327AbeCOPab (ORCPT ); Thu, 15 Mar 2018 11:30:31 -0400 Received: from [10.20.15.13] ([96.65.213.252]) by smtp-cloud8.xs4all.net with ESMTPA id wUpiezIbAaXTbwUpmehzLa; Thu, 15 Mar 2018 16:30:29 +0100 Subject: Re: [PATCH v2 1/4] media: i2c: Copy mt9t112 soc_camera sensor driver To: jacopo mondi , Sakari Ailus Cc: Jacopo Mondi , laurent.pinchart@ideasonboard.com, mchehab@kernel.org, linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org References: <1520862185-17150-1-git-send-email-jacopo+renesas@jmondi.org> <1520862185-17150-2-git-send-email-jacopo+renesas@jmondi.org> <20180315113533.cwgf7g7sir7gyplk@valkosipuli.retiisi.org.uk> <20180315143856.GF16424@w540> From: Hans Verkuil Message-ID: Date: Thu, 15 Mar 2018 08:30:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20180315143856.GF16424@w540> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfIrJdHSjxR2Y/vc+XZH5ocGDaYlbyQN7yCdc0aK55h7rKMpnYKabFLsg/HN8rh1IbW33+fgmvBNyqPoNJHjynQ5kklr74pQOEvLLx0o3Jj9jUl0ETDip mZk9/Nwp5vJ7IA2fFyfeChA8RgTBjKhrlTU7gd4MaxaMo7izQ5AubUC58c8YwVf++NxBPAetZiXjgyiGdplgxxS/OHjJxTIHo9KMR1DFn4Jsdlbgg8A+Ruet CN7FyGNrWbYAHI9lNzuGRiBrJnCiEaLwiK9O/uAX7q7RyaIWctvtlqsH2ngwCogQ37GyWnR2jsYQL3o427GqIY9zxYI96TDX/QyZ6lZTVOuRoX7ViCTqCNIN Pka3aiYTn1y4bWCeYDh3q0JW4qi7QEjVCJ5REQPsiW1jJmQ5oYo= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/15/2018 07:38 AM, jacopo mondi wrote: > Hi Sakari, > thanks for looking into this! > > On Thu, Mar 15, 2018 at 01:35:34PM +0200, Sakari Ailus wrote: >> Hi Jacopo, >> >> I wonder if it'd make sense to just make all the changes to the driver and >> then have it reviewed; I'm not sure the old driver can be said to have been >> in a known-good state that'd be useful to compare against. I think you did >> that with another driver as well. >> > > Well, I understand this is still debated, and I see your point. > As far as I can tell the driver had been developed to work with SH4 > Ecovec boards and there tested. > > I'm not sure I fully got you here though. Are you proposing to > squash my next patch that cleans up the driver into this one and > propose it as a completely new driver to be reviewed from scratch? > > In the two previous driver I touched in this "remove soc_camera" > journey (ov772x and tw9910) I have followed this same pattern: copy > the soc_camera driver without removing the existing one, and pile on > top my changes/cleanups in another patch. Then port the board code to > use the new sensor driver, and the new CEU driver as well. > > Also, how would you like to proceed here? Hans sent a pull request for > the series, should I go with incremental changes on top of this? I don't want to postpone this conversion. The i2c/mt9t112.c is bug-compatible with i2c/soc-camera/mt9t112.c which is good enough for me. Being able to remove soc-camera in the (hopefully very) near future is the most important thing here. Once Jacopo can actually test the sensor, then that's a good time to review the driver in more detail. This reminded me that I actually started testing this sensor a year ago (I bought the same sensor on ebay, I completely forgot about that!). My attempt is here: https://git.linuxtv.org/hverkuil/media_tree.git/log/?h=mt9t112 I never finished it because I had no documentation on the pinout and never got around to hooking my oscilloscope up to it to figure this out. I was testing this with the atmel-isc.c driver. This might be of some use to you, Jacopo, once you have the sensor. Regards, Hans