Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3850287ybl; Mon, 12 Aug 2019 07:25:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6LQ4su92atcy4xglp+JCos6Xv5NkfQBBj0Gxj7nN/fDgnAAxGgMvF5teFaNo5SHr35C+x X-Received: by 2002:a65:6546:: with SMTP id a6mr31435750pgw.220.1565619940486; Mon, 12 Aug 2019 07:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565619940; cv=none; d=google.com; s=arc-20160816; b=vp1nvhBluH5O3oY3TxFaKBI9FJNOg8+cpmNWhrBXHcXCgB0MtfX93dBgylpjqfiQwF L/YdL04t8Ox+w4c6J3LvxC2aiFYtnmZRe4XYgQuOwKuaafRms+tvNTa/VY09osG+LAmU A4wiY+pL8JD+qmoCiSzaXB011qmogV95tekL1TH2YPgO+MUEMSWGoeQ9J/xeDnmRkJZu 0ZWA7VWIn6YB9s4OqdrRQdf/6QgK6NAkk+WGJQszLFL35B7M4sJuX+EFUP3WHAXzQxze HuVCQIqK2qPoD2obfG5mkhjy9z1++1vk6AAQgzOsvkqBAV+rOCxXMVCvjQ9F5jP7mpQ6 /7zw== 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:dkim-signature; bh=OI+SenSnm9K2V/mRZsiKbYybdEOLr46G6lp3yk3nk7A=; b=GqL3Rj27QqlYotY9uDqOSlKVi/lhEqXabSkdavde9rohQF4hQE4SqouawbAgqcFzKA TQAsisqZbMMJe8ZOv6G4SuEFaoGwQSCWlW2FJ4IbVAn1DQ6j+PpB4Lo3SFqg37zahSaE Z2yY9vr/HndBA+wQ5eyyRzXon9WGCbdaJJ3M4uZO89vKaJg6JKHvkklU7MITOAylB8Wg ILU56B4HvTQ3rQY6kvddRt+e0WT1+MUc6iN0ejjkGVRM3ovX01wfECaNl851aiux8W4f UQLZ0qnLgHPzvZ+I55HaDZMhTged8n/GIfY12yXMYKcG+xCsULBY48gfLR/E/3b+EeXP Pn6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=MdClYar7; 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 94si12908000plf.221.2019.08.12.07.25.25; Mon, 12 Aug 2019 07:25:40 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=MdClYar7; 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 S1727903AbfHLOYx (ORCPT + 99 others); Mon, 12 Aug 2019 10:24:53 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:36772 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726585AbfHLOYw (ORCPT ); Mon, 12 Aug 2019 10:24:52 -0400 Received: from pendragon.ideasonboard.com (dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6763C327; Mon, 12 Aug 2019 16:24:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1565619890; bh=JclI79piuUPbIB88Y35NuHhrDCtcyvwfghAGMqyhi7I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MdClYar7VDS+d7D7oWHHizEt+M2uExI3jx9pY8+IMmiIi4cOu2/aC1vkEhvTuHOzs dBL2WswIjICz8qBqsOAk4w7xk/Z2eN7eXVqGRmlLaJ8lZyXGYkwLOs+z+hRMYdJ5fb GLPal75ifBn7mBS2AhahJpodA/m2yFJb4Fuwu+sc= Date: Mon, 12 Aug 2019 17:24:47 +0300 From: Laurent Pinchart To: Shuah Khan Cc: helen.koike@collabora.com, =?utf-8?B?QW5kcsOp?= Almeida , mchehab@kernel.org, hverkuil@xs4all.nl, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH 1/3] media: vimc: move private defines to a common header Message-ID: <20190812142447.GF5006@pendragon.ideasonboard.com> References: <142cc5a6a10f75ed97de8b2d9b1e73b034a88b2f.1565386363.git.skhan@linuxfoundation.org> <20190810141432.GA30451@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shua, On Mon, Aug 12, 2019 at 08:19:27AM -0600, Shuah Khan wrote: > On 8/10/19 8:14 AM, Laurent Pinchart wrote: > > On Fri, Aug 09, 2019 at 03:45:41PM -0600, Shuah Khan wrote: > >> In preparation for collapsing the component driver structure into > >> a monolith, move private device structure defines to a new common > >> header file. > > > > Apart from the vimc_device structure, this doesn't seem to be needed. > > I'd rather keep each structure private to the .c file that handles it, > > and only share vimc_device globally. > > Right. I initially thought that I needed these global. Once I completed > the patches without needing these as global, I overlooked updating the > patches. > > I will take care of that. Any thoughts on vimc.h vs. adding vimc_device > struct to existing vimc-common.h > > As I explained to Helen in response to her comment about: > > "My thinking is that vimc-common.h is common for all the subdevs and > putting vimc-core defines and structures it shares it with the subdev > files can be in a separate file. > > It is more of design choice to keep structures and defined organized. > Originally I was thinking all the subdev device structires need to be > global, and my patch set I sent out as such doesn't need that. I just > overlooked that when I sent the patches out. > > This reduces the number of things that need to be common, I don't really > have any strong reasons for either choice of adding common defines to > vimc-common.h vs vimc.h - maybe with a slight tilt towards vimc.h" The vimc_device structure fits nicely in vimc-common.h in my opinion, as it's used by every component. I don't care much either way. > Thanks all for a quick review and testing. I will work on v2 with your > comments. I want to make sure topology either looks the same as what > is in media master. I think it is, but I want to double check. -- Regards, Laurent Pinchart