Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp876303pxk; Mon, 31 Aug 2020 03:52:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbNazQirXs2cqbBIWrcmrCZz5UzbuL3cgfn4OHuRKZB3ablF97Ja1+sTcFTGWkXaVbv/NO X-Received: by 2002:a17:906:e0c7:: with SMTP id gl7mr533385ejb.109.1598871157069; Mon, 31 Aug 2020 03:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598871157; cv=none; d=google.com; s=arc-20160816; b=DnIPqV0wgubXfHvaf4bNSskaWOUkHRPvbr31O0ff8q2IRl1yXC8tubAh0ZD3HYkX/x vvC32IIFtQSWEs6BJ6eI7WKTzFOQwy7rHI2MbwcnAsAJv/ZrVvwqfj7+o3vdMzg+2k8u Oq73oYLBH8z8+qOE4hPcpQHcjjv7hKt7FaYBr/cUhQJMkD6Wk7PZXjK45tP2dZYCSTKx D+ubFc8FfkkJ/as/97MzHlbVBZrFdYcetnLo0vHLYa8kXOGfppNNyoo1bL+umlbd+9bi /CIi9tS04+vj03s0PzKEgGAwm6f4e/eWWzXTNUJ+OEiI0HZPgksULM4ON94LAGGaJp5E YctA== 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:ironport-sdr :ironport-sdr; bh=9r8FS/+6v0ZubtKtKGf6Jpj09/5fDO1VeUg0fx7/uhs=; b=P3J1dETdRmVgRjvN9UXJX9/w8xhCTqQDwSLUaFV++3Nfktn2NgRFHA9k3w4wkmbyjf jii0J5+iXIc/bMvV2wtLE/knscwF6hI3LFZu9EaHtd4qtwWOGbwGIb6ICg6/8h7zgpzo naEqjT06voL6/4caBYVQkeLxQ1iaRLotMirpwVRnLqONCe71lPu+DeBdzR4EJyyXrcgS 5lH/04KgVogR9kkmVceXBEKXTBP1c8kTJapVxcZ5tK36cniDR95HWRNZYsEe1c3SZ+kC J3XPV9IWbroT5qJOWjCpgFs1CnTSOxGBRFtf43oTvaG7yU9eIYwp5ij7E4v9kOa0sdN2 upow== 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b3si4654703edj.162.2020.08.31.03.52.14; Mon, 31 Aug 2020 03:52:37 -0700 (PDT) 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726845AbgHaKtF (ORCPT + 99 others); Mon, 31 Aug 2020 06:49:05 -0400 Received: from mga03.intel.com ([134.134.136.65]:9160 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726797AbgHaKsy (ORCPT ); Mon, 31 Aug 2020 06:48:54 -0400 IronPort-SDR: mjh+pU5l3w+xP4a0wwPq7B/AVikvNUlqhG2+jRQrWcH3/SdVdkE8IlXTUcommcqFnWzkxwZ/PP tc4TMfHf8FAg== X-IronPort-AV: E=McAfee;i="6000,8403,9729"; a="156947471" X-IronPort-AV: E=Sophos;i="5.76,375,1592895600"; d="scan'208";a="156947471" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2020 03:48:53 -0700 IronPort-SDR: QtbYslM8L6VMNNukXAtrEXwVAn0uOhONeiIlE9BvQ5B9t/RaF/9VInXkE7qJwK2FRDyEZ2mAhe /erudIpq4vCw== X-IronPort-AV: E=Sophos;i="5.76,375,1592895600"; d="scan'208";a="374774114" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2020 03:48:49 -0700 Received: by paasikivi.fi.intel.com (Postfix, from userid 1000) id AB5D3204F9; Mon, 31 Aug 2020 13:48:47 +0300 (EEST) Date: Mon, 31 Aug 2020 13:48:47 +0300 From: Sakari Ailus To: =?iso-8859-1?Q?K=E9vin_L'h=F4pital?= Cc: linux-media@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, mripard@kernel.org, wens@csie.org, yong.deng@magewell.com, mchehab+samsung@kernel.org, p.zabel@pengutronix.de, hans.verkuil@cisco.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, paul.kocialkowski@bootlin.com, thomas.petazzoni@bootlin.com Subject: Re: [PATCH v2 2/4] media: sunxi: sun6i-csi: Move the sun6i_csi_dev structure to the common header Message-ID: <20200831104847.GJ31019@paasikivi.fi.intel.com> References: <20200828131737.12483-1-kevin.lhopital@bootlin.com> <20200828131737.12483-3-kevin.lhopital@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200828131737.12483-3-kevin.lhopital@bootlin.com> 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 K?vin, On Fri, Aug 28, 2020 at 03:17:34PM +0200, K?vin L'h?pital wrote: > Access to the sun6i_csi_dev structure is needed to add the > MIPI CSI2 support. > > Signed-off-by: K?vin L'h?pital > --- > drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c | 12 ------------ > drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h | 12 ++++++++++++ > 2 files changed, 12 insertions(+), 12 deletions(-) > > diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c > index 055eb0b8e396..680fa31f380a 100644 > --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c > +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c > @@ -29,18 +29,6 @@ > > #define MODULE_NAME "sun6i-csi" > > -struct sun6i_csi_dev { > - struct sun6i_csi csi; > - struct device *dev; > - > - struct regmap *regmap; > - struct clk *clk_mod; > - struct clk *clk_ram; > - struct reset_control *rstc_bus; > - > - int planar_offset[3]; > -}; > - > static inline struct sun6i_csi_dev *sun6i_csi_to_dev(struct sun6i_csi *csi) > { > return container_of(csi, struct sun6i_csi_dev, csi); > diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h > index 8b83d15de0d0..c4a87bdab8c3 100644 > --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h > +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h > @@ -48,6 +48,18 @@ struct sun6i_csi { > struct sun6i_video video; > }; > > +struct sun6i_csi_dev { > + struct sun6i_csi csi; > + struct device *dev; > + struct regmap *regmap; > + struct clk *clk_mod; > + struct clk *clk_ram; > + struct clk *clk_mipi; > + struct clk *clk_misc; This patch adds two more clocks, please add them when you need them. I think you could also squash the patch to another one that requires the struct in the header. > + struct reset_control *rstc_bus; > + int planar_offset[3]; > +}; > + > /** > * sun6i_csi_is_format_supported() - check if the format supported by csi > * @csi: pointer to the csi -- Sakari Ailus