Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9465054pxu; Mon, 28 Dec 2020 17:31:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJynrCMIy7nhz15XL8lSg47EsWrdvVsXOsWpWwj9XgZrov0LmVKwpmXiHTigywPsR7KHhdyT X-Received: by 2002:a17:906:2681:: with SMTP id t1mr44073377ejc.29.1609205482519; Mon, 28 Dec 2020 17:31:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609205482; cv=none; d=google.com; s=arc-20160816; b=k2N2lYg2lZOajRi6UbC1b171K0ER+ASSNxmZVlE4RqMvzflsiD7N48t69t9569V+So ywJPWdxAIg2ZAaxhcUCIoBT1hrY5K+gFAPHn8+sj2eMW08bpf8rHJYnYcfTsDjdAgQL4 AlC3RTcB+SWgglg5LRXvytz3zr/IMn8xohO46XBRsjXWRL886hinfIhFI3DF0uD4sAkL pP/Ld96uZ7K0iTkwttaFAsmR9TKZOThmiAYHko9h2EbARqcAhyi2YGxcF+oq/1/V2+3M 36ve7pwx2Vd2PMc0OdSFcTOXuAhu/T/OQhEEZW10bv4YKXbG/m4FPLgtr8c5exFPvhsy e4kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=AghAFUaokADwnARQvFNCQcalkZox46lF181KahmwSNA=; b=lf8qvjn+8AlVibcg7uf7P/bLjEeAbBteGw0D1VbZlI28s3Ioh7qMSDzDpZv4pWf9eu OL/tZT9XOgXoqLd4vIRWKcNZGlzCcCnVkpWMyuelxPB3SElUoMZDLooMcuAOwwoKDWuU pnBC4nsoxnnsGVjeu46/xo4M2ge8iJJjrOspaVqtNiMrTlgPQlhuwqwTM2hEUpwsCPAq MYc8RnXhrY7RNeLr4AnX9KVu/d8gnZuue+ccHnchI05eFQ3OmXhP4dY5dse3jNDFZx3f bRAAaUiPZqXZgroa0Nf5cttqTf1Sq/hl8Hvy9Tsp2NNR8qF0mA0V3cqRQ6TCiu5wI/MK 4Xjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp25si19898736ejc.361.2020.12.28.17.31.01; Mon, 28 Dec 2020 17:31:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729142AbgL1XAW (ORCPT + 99 others); Mon, 28 Dec 2020 18:00:22 -0500 Received: from mga03.intel.com ([134.134.136.65]:26745 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731775AbgL1W4W (ORCPT ); Mon, 28 Dec 2020 17:56:22 -0500 IronPort-SDR: CibDkYV6HPQ8IvcRrUfyqyR2b7Rv+OiZBORwJ6Rgs7MkcpdOYEPqiy3dYyPZNKO+S9OPK3Tfv+ 4U1D0Ns/qdjw== X-IronPort-AV: E=McAfee;i="6000,8403,9848"; a="176529384" X-IronPort-AV: E=Sophos;i="5.78,456,1599548400"; d="scan'208";a="176529384" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2020 14:55:41 -0800 IronPort-SDR: RDA/+I/5GKfDFCkIf6tVgGIakOFgulH3t0Bbr6Yuf4NZbXXydFd6LHfppPZxTVQ6QxynaeSWuG XYBcblFDj7aA== X-IronPort-AV: E=Sophos;i="5.78,456,1599548400"; d="scan'208";a="562962395" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2020 14:55:34 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1ku1RL-000Iqk-5E; Tue, 29 Dec 2020 00:56:35 +0200 Date: Tue, 29 Dec 2020 00:56:35 +0200 From: Andy Shevchenko To: Daniel Scally Cc: Sakari Ailus , Linux Kernel Mailing List , ACPI Devel Maling List , Linux Media Mailing List , devel@acpica.org, "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Yong Zhi , Bingbu Cao , Tian Shu Qiu , Mauro Carvalho Chehab , Robert Moore , Erik Kaneda , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Rasmus Villemoes , Laurent Pinchart , Jacopo Mondi , kieran.bingham+renesas@ideasonboard.com, Hans Verkuil , Marco Felsch , niklas.soderlund+renesas@ragnatech.se, Steve Longerbeam , "Krogerus, Heikki" , Linus Walleij , Jordan Hand , Laurent Pinchart Subject: Re: [PATCH v3 14/14] ipu3-cio2: Add cio2-bridge to ipu3-cio2 driver Message-ID: <20201228225635.GI4077@smile.fi.intel.com> References: <20201224010907.263125-1-djrscally@gmail.com> <20201224010907.263125-15-djrscally@gmail.com> <20201228170521.GZ26370@paasikivi.fi.intel.com> <2d37df3d-f04c-6679-6e27-6c7f82e9b158@gmail.com> <20201228225544.GH4077@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201228225544.GH4077@smile.fi.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 29, 2020 at 12:55:45AM +0200, Andy Shevchenko wrote: > On Mon, Dec 28, 2020 at 10:37:38PM +0000, Daniel Scally wrote: > > On 28/12/2020 17:05, Sakari Ailus wrote: > > > On Thu, Dec 24, 2020 at 02:54:44PM +0200, Andy Shevchenko wrote: > > ... > > > >>> +#include > > >>> + > > >>> +#define CIO2_HID "INT343E" > > >>> +#define CIO2_NUM_PORTS 4 > > > > > > This is already defined in ipu3-cio2.h. Could you include that instead? > > > > Yes; but I'd need to also include media/v4l2-device.h and > > media/videobuf2-dma-sg.h (they're included in ipu3-cio2-main.c at the > > moment). It didn't seem worth it; but I can move those two includes from > > the .c to the .h and then include ipu3-cio2.h in cio2-bridge.h > > > > Which do you prefer? > > Actually ipu3-cio2.h misses a lot of inclusions (like mutex.h which I > immediately noticed when scrolled over data types). I think here should be a > compromise variant, split out something like ipu3-cio2-defs.h which can be Seems like cio2-defs.h more plausible name. > included in both ipu3-cio2.h and cio2-bridge.h. > > And cio2-bridge.h needs more inclusions like types.h. -- With Best Regards, Andy Shevchenko