Received: by 10.223.185.111 with SMTP id b44csp1653717wrg; Sat, 10 Mar 2018 10:41:26 -0800 (PST) X-Google-Smtp-Source: AG47ELtI62IrKejQkLdoomWwO6yUHgtwjVXPoxzQBiw9+JlwyBCCwktUGw1H6y70eVzY7XYk71RS X-Received: by 10.99.181.10 with SMTP id y10mr2288352pge.222.1520707286487; Sat, 10 Mar 2018 10:41:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520707286; cv=none; d=google.com; s=arc-20160816; b=TDtarsSrzn9J255QjoAWnwyp+bTUMqMagmQX6OV6hAyn0Mnz+6ym74cLXi+oIkCv2R UTNNb25xPBm5CsWLSpGCCzUTDDKR9osJbZBcL9X22gqjlYte5rre+sksZNz6+n0Hm1qf HWuXxVJkFdYWqcp/aGVG+R/j9wAlziRcOfk9Qlwlj9upSy92194RGR4fkZvva6oYyApu b3GdziGIwve8qsAb9kkXmoaIOlEaU22FiL2RiIEyLlXlEUBVHwmERZEiACvDbBF8FBTa bS9/UrnUt6G7udZH8npwRgqg+1Nl4NeY9n705D7W6lRPfc6ViEdl80bK/8UNUtMIfXE3 YhSQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=hcw7XTdNXAarg29fUXYMtABn7z0B8879RPZfo6ihRXw=; b=dJJAi4bIdMVDgfmuSdrE4IMce2Ww0aXZCrmO8+YEB3VaUFncVcvJt7GNzei42hUABd iHWhE5sBVAadHjF9kY3OgHoAXRcjFcrYpxfYQX//5BkvbCjYHSozfecuONvqg01wVnin ZwsU4/RanwvlZ+yoQh9WAJ2zMrWmh9VUFkhYsSR2+cKZcRBen5VLiJvvcB7jXjXx7hWy VHddGCxMzon0/pW0Dnv4ZXZT4xhfyWK2e2I7K/LoanG/9e9Eu71pyY30u99Q8SEP7qOb k4ImPJTduCep8WuGVFKv+uoDiWv3mUylD6BvrC5kNtXudlphNR5GZ4trmuGm67NdsHJi 9YTA== 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 z13si2636161pgv.473.2018.03.10.10.41.12; Sat, 10 Mar 2018 10:41:26 -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 S1752131AbeCJSjM (ORCPT + 99 others); Sat, 10 Mar 2018 13:39:12 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:44427 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932407AbeCJSUs (ORCPT ); Sat, 10 Mar 2018 13:20:48 -0500 Received: from w540 (unknown [IPv6:2001:b07:2e0:f265:9d0c:ef95:a3e:64e9]) (Authenticated sender: jacopo@jmondi.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id DBE07A80C2; Sat, 10 Mar 2018 19:20:43 +0100 (CET) Date: Sat, 10 Mar 2018 19:20:42 +0100 From: jacopo mondi To: Hans Verkuil Cc: Jacopo Mondi , laurent.pinchart@ideasonboard.com, sakari.ailus@iki.fi, mchehab@kernel.org, linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] Renesas CEU: SH7724 ECOVEC + Aptina mt9t112 Message-ID: <20180310182042.GK4023@w540> References: <1520008541-3961-1-git-send-email-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Hi Hans, On Sat, Mar 10, 2018 at 06:57:17PM +0100, Hans Verkuil wrote: > Hi Jacopo, > > On 02/03/18 17:35, Jacopo Mondi wrote: > > Hello, > > now that CEU has been picked up for inclusion in v4.17, we can start moving > > users of old sh_mobile_ceu_camera driver to use the newly introduced one. > > > > Migo-R has been first, now it's SH7724 ECOVEC board turn. > > > > ECOVEC has a camera board with two MT9T112 image sensor and one TW9910 video > > decoder input. This series moves the mt9t112 driver away from soc_camera > > framework and remove dependencies on it in mach-ecovec board code. > > > > As per Migo-R, memory for CEU is reserved using memblocks APIs and declared > > as DMA-capable in board code, power up/down routines have been removed from > > board code, and GPIOs lookup table registered for sensor drivers. > > > > As in the previous series, still no code has been removed or changed in > > drivers/media/i2c/soc_camera/ until we do not remove all dependencies on it > > in all board files. > > > > Hans, since you asked me to add frame rate interval support for ov772x I expect > > to receive the same request for mt9t112. Unfortunately I do not have access to > > register level documentation, nor can perform any testing as I don't have the > > camera modules. For the same reason I cannot run any v4l2-compliance test on > > that driver, but just make sure the ECOVEC boots cleanly with the new board > > file. I'm in favour of moving the driver to staging if you think that's the case. > > > > Series based on media-tree master, and as per Migo-R I would ask SH arch/ > > changes to go through media tree as SH maintainers are un-responsive. > > When compiling this series I get this error: > > drivers/media/i2c/soc_camera/mt9t112.c: In function ‘mt9t112_init_pll’: > drivers/media/i2c/soc_camera/mt9t112.c:426:16: error: dereferencing pointer to incomplete type ‘struct mt9t112_camera_info’ > priv->info->divider.m, > ^~ > > Can you take a look? Ups, changing the driver interface ofc breaks the soc_camera version of the driver (I didn't notice as I've compiled soc_camera out in my tests). As the old driver is the only user of that interface this series doesn't touch[1] I'll rename the old 'struct mt9t112_camera_info' to the newly introduced 'struct mt9t112_platform_data' (and I've made sure nobody uses the flag definitions I have removed). I'll pile another patch on top of the one just sent to add the TODO note at driver's beginning. Sorry about that j [1] $git grep "media/i2c/mt9t112.h" . MAINTAINERS:F: include/media/i2c/mt9t112.h arch/sh/boards/mach-ecovec24/setup.c:#include drivers/media/i2c/mt9t112.c:#include drivers/media/i2c/soc_camera/mt9t112.c:#include > > Regards, > > Hans > > > > > Thanks > > j > > > > Jacopo Mondi (5): > > media: i2c: Copy mt9t112 soc_camera sensor driver > > media: i2c: mt9t112: Remove soc_camera dependencies > > media: i2c: mt9t112: Fix code style issues > > arch: sh: ecovec: Use new renesas-ceu camera driver > > media: MAINTAINERS: Add entry for Aptina MT9T112 > > > > MAINTAINERS | 7 + > > arch/sh/boards/mach-ecovec24/setup.c | 338 +++++----- > > arch/sh/kernel/cpu/sh4a/clock-sh7724.c | 4 +- > > drivers/media/i2c/Kconfig | 11 + > > drivers/media/i2c/Makefile | 1 + > > drivers/media/i2c/mt9t112.c | 1136 ++++++++++++++++++++++++++++++++ > > include/media/i2c/mt9t112.h | 17 +- > > 7 files changed, 1333 insertions(+), 181 deletions(-) > > create mode 100644 drivers/media/i2c/mt9t112.c > > > > -- > > 2.7.4 > > >