Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3785110imm; Mon, 2 Jul 2018 05:39:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI17jwhKRAA9XA+ZwhSWiUhvCjbyUVetxcMqDFPagYuDgpkLX6LI4WFmR5vPgrU6tXCk1Yr X-Received: by 2002:a17:902:ab95:: with SMTP id f21-v6mr25184354plr.264.1530535140144; Mon, 02 Jul 2018 05:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530535140; cv=none; d=google.com; s=arc-20160816; b=owzqx3YWi9eNVzKmQkMW8C6HIpT8ux883irHv3dqFcFPFhSqt93BKw1g5tTRBsEwxi o+H5CP/nSGAMybSrYztJowvFXv7igDpLom0V0ND97ocvZt52GE89peRu83LYpn8W5vgW 7PUYUTgEUKj7o8pHD9UAsolZ/WhhgaUDdbWyxnGpK0k8IyE46yHEoFs37wiv/cyTyi23 7+Wgoldi705c2FUYfKImOeE5a1cN0m8pmrnIJ2xgDhKedO5WbqpxpozMBKGCzBA1zBFY WN0edq0cFBcxLI2yNeHDzbmm2uOWRWeiDXSL9wSGE3khkS8n3UWS3vbODvNgs07bEopQ fiaw== 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=ZmXWP/xX6FndGHz0bR2bnscXye2sLN74E/9HwCRwWrA=; b=CLjIoBMVDBDx+MttZV59rrgF2sLe9YP2XAlxVHC63BKfjDGd48McuGT+PGogtIZG4/ WADTtJme+FctdNvGiWievIyI1lTH52qettGUscLOAtXiPsPP+j5pa1qB8LhtLvwD0atV TBmT8A7pGpaz4SDIoGSuutxQ5JWSCSiS05zUQ0FUarbXwijRnd7KOkslFPiOnsgygAv1 DD5GL0HMFCHSMInybRRlkYHI7hJFgCJeXize79WSrEJTi/6cb95EwcX0mwgoMH7ue0Lz AVZwlfukdn+5VJSIRJHIhPvMBIPA7V25p/QH/jFNH3y28hVXYLveNFuiiVQblcql4q6l 7xfQ== 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 u21-v6si16077455pfd.78.2018.07.02.05.38.46; Mon, 02 Jul 2018 05:39:00 -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 S965118AbeGBKMH (ORCPT + 99 others); Mon, 2 Jul 2018 06:12:07 -0400 Received: from lb2-smtp-cloud9.xs4all.net ([194.109.24.26]:41641 "EHLO lb2-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964922AbeGBKME (ORCPT ); Mon, 2 Jul 2018 06:12:04 -0400 Received: from [IPv6:2001:983:e9a7:1:211d:3901:19f1:80d] ([IPv6:2001:983:e9a7:1:211d:3901:19f1:80d]) by smtp-cloud9.xs4all.net with ESMTPA id ZvoNf6MskEJtcZvoOfvJZA; Mon, 02 Jul 2018 12:12:02 +0200 Subject: Re: [PATCH v11 10/10] arch: sh: migor: Use new renesas-ceu camera driver To: Jacopo Mondi , laurent.pinchart@ideasonboard.com, magnus.damm@gmail.com, geert@glider.be, mchehab@kernel.org, festevam@gmail.com, sakari.ailus@iki.fi, robh+dt@kernel.org, mark.rutland@arm.com, pombredanne@nexb.com Cc: 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 References: <1519295846-11612-1-git-send-email-jacopo+renesas@jmondi.org> <1519295846-11612-11-git-send-email-jacopo+renesas@jmondi.org> From: Hans Verkuil Message-ID: <3a262281-2f47-af79-970a-c8ec5ac82778@xs4all.nl> Date: Mon, 2 Jul 2018 12:11:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1519295846-11612-11-git-send-email-jacopo+renesas@jmondi.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfOukHhbYx6XN8IJ2lUVC/ASy/zWKXaDxMsoBH/C/yeQlv+JpBIrJJ937FGZ0pjqUlO7kMX4Gt3iZuIMfb1D4/Uqgj51aPYPnryx8GSxqhlulEptsfyjl Q1WVysoPb/P54SHnEUM/fuNX0gtqf1bARiBaE+gT2TJ1DOnoOBNA7dP4OCaPe+upbkCMGQTWSB94XHXPsgrQyF4fPBHddFIviM6+sJGtrR1IPcbxjvd0H1BV 58gQTkyOI6qDJxAlUVjCiYv4Txif4tvJdetcbCKgj35n47YM0iFsZY0omXJbKvBT5H24r/QS+eTpC5zfwzlzDSc/iv+3Bo+k2eWKxDv9G0KbyLy7C5DKk0Lo G6m+hQlcsuAysaSRevWt3oo91yT97CX3q6i8xMU0abKe3LUyB4XVFUnI1BUlE8QZF5cfCjSXdUOjz26wcETzqHtVFvKlkSaNUWpca6BIrCiGBwBqizkoLDbe xJfvOfT6IUoHbvJNlhpDx+tV5AT9/r/Qgyh4wV2zZGtWoQCg2LGHI12kxaYaxu6Le5Nxa4ZiZ0hcf8F29iB874V3QzkyvZUq9bikgnPkDakFhXxPpmZGfLs1 3TEUd40O9pxwefAN2SNxQtv37a2ilIUYJYZZ4M5YqKmMwzQjvhaLxOTVp5Tq3M/PwQaSA53SsoEnEdx6D3QPd7rMMPkS4by18+EwrW2tN81ZmxMFs+HnttLQ GYVfA/OblaywqeaDjhqUr0n+pNVA53MKZHT1GZf5t63iv8EpKTXBSpXeZswL6HFGdZkozw91+dDs2gmcuiKdIj7H0+XTXZrv Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/02/18 11:37, Jacopo Mondi wrote: > Migo-R platform uses sh_mobile_ceu camera driver, which is now being > replaced by a proper V4L2 camera driver named 'renesas-ceu'. > > Move Migo-R platform to use the v4l2 renesas-ceu camera driver > interface and get rid of soc_camera defined components used to register > sensor drivers and of platform specific enable/disable routines. > > Register clock source and GPIOs for sensor drivers, so they can use > clock and gpio APIs. > > Also, memory for CEU video buffers is now reserved with membocks APIs, > and need to be declared as dma_coherent during machine initialization to > remove that architecture specific part from CEU driver. > > Signed-off-by: Jacopo Mondi > Reviewed-by: Laurent Pinchart > Acked-by: Hans Verkuil > --- > arch/sh/boards/mach-migor/setup.c | 225 +++++++++++++++------------------ > arch/sh/kernel/cpu/sh4a/clock-sh7722.c | 2 +- > 2 files changed, 101 insertions(+), 126 deletions(-) > > diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c > index 0bcbe58..271dfc2 100644 > --- a/arch/sh/boards/mach-migor/setup.c > +++ b/arch/sh/boards/mach-migor/setup.c > @@ -1,17 +1,16 @@ > +// SPDX-License-Identifier: GPL-2.0 > /* > * Renesas System Solutions Asia Pte. Ltd - Migo-R > * > * Copyright (C) 2008 Magnus Damm > - * > - * This file is subject to the terms and conditions of the GNU General Public > - * License. See the file "COPYING" in the main directory of this archive > - * for more details. > */ > +#include > #include > #include > #include > #include > #include > +#include > #include > #include > #include > @@ -23,10 +22,11 @@ > #include > #include > #include > +#include > #include > #include > #include