Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9468491pxu; Mon, 28 Dec 2020 17:38:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrs45UYkTS5ih7AmPt3sdZAi0UTHoNF0iRxgzFeyv0gPy1JPYZMV7xnwK7gFw3CHZdYH7r X-Received: by 2002:a17:906:b56:: with SMTP id v22mr43603993ejg.145.1609205925520; Mon, 28 Dec 2020 17:38:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609205925; cv=none; d=google.com; s=arc-20160816; b=hfM3BmgO+/aNy/5+4rEL8CqqLux18WFRVTXoJy902HEDlAAw+HYkEK7HgAQHHbSFZf Sc1Y6oYB+4gPXzUM2uANSQtRsyjSFNazG4ZOev7WRshrd0Hw2fyl7pczbPmPBVnZDywU DFaQqmXdkVgE5KperJjg7yK84xC5QpiMXtHa1sm/z08ggRE5MqaBWVswnVf/Ptg4eS+T 6SVYB0HEMmoui1Q+h0rHyJo7uIrYfhtOQ+0Vf5iB4Gs5J/fYOjaMODUysn7Hn62fV6j5 YcoKfxEcDulf0zc0FRIFBd+mYz/3w2QLWgzWqCstq9c6P34gdmhrSAzUU/GPYuqCgh6I KAFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iROHziRllClPMIv3M8jazSj1Nb5xYLRzveYdiXpxmXQ=; b=gd32v6Q9b620nr547tg+VBvI3knxAXy9fYD/3ZpLsmpSTtQ5uQ+EDsU592jWrMLpLo b/7Dk0RzOW3Y+GgR5ycPwmzD+k74Ye/EXh1q1U77R3HpO0TOfou2CA/g3zO/CEP/ZXzJ RsMXYzY829GdQ6y9+ol0K3bZmwtUsGM/tybtZrhpj1hjrgqyYfzt0TAcuW93fHA5TLdF b3lCwGnp3tS7MmbVI1g9wmtjyifPV1IpbUmHIgufDEh1IvfG5PF5asKd5JV10Zk5IySn 0di8Uizm7zOZPZcmiRglI+Da8RXPlsbpsFyXJvlY0qF4V8/0GbAKvKK4xQWvxajgpWYL 41MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=h4akwS4I; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cq7si19878111edb.425.2020.12.28.17.38.22; Mon, 28 Dec 2020 17:38:45 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=h4akwS4I; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728242AbgL1XJA (ORCPT + 99 others); Mon, 28 Dec 2020 18:09:00 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:44536 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727231AbgL1XI4 (ORCPT ); Mon, 28 Dec 2020 18:08:56 -0500 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 294F23E; Tue, 29 Dec 2020 00:08:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1609196890; bh=mB5ce02/kggJtcT6vhpDUNFdXXr9q+/WEv+XXlNQq74=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h4akwS4Igz+Bl+QldrRBKC0Ma5OLn8Xf+P4gQLIr58DO+D7jt/9Mi9IIkJHkt1Wmb DZJgR2n4toeSLgHZiibW1D1htMtMXko5RSyr+r0XrKgKyU17sEEj/Xyj5RKYJKsWuC cceBaSmnOQ/h8Jmh1QfjJgjrImAdyVRlOe3ZUFu0= Date: Tue, 29 Dec 2020 01:07:59 +0200 From: Laurent Pinchart To: Andy Shevchenko Cc: Daniel Scally , 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 Subject: Re: [PATCH v3 14/14] ipu3-cio2: Add cio2-bridge to ipu3-cio2 driver Message-ID: 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=utf-8 Content-Disposition: inline In-Reply-To: <20201228225544.GH4077@smile.fi.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 29, 2020 at 12:55:44AM +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). Then ipu3-cio2.h should be fixed :-) > I think here should be a compromise variant, split out something like > ipu3-cio2-defs.h which can be included in both ipu3-cio2.h and > cio2-bridge.h. > > And cio2-bridge.h needs more inclusions like types.h. -- Regards, Laurent Pinchart