Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3065954rdh; Mon, 27 Nov 2023 05:59:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIRWFs/l2xKfOvfEXF7iNv6XYN9lZR+nZxi8fiCyqJunkfFFuXmjj1Mev6ajPpZoBtPfcv X-Received: by 2002:a17:902:cec1:b0:1ce:5f09:ffdf with SMTP id d1-20020a170902cec100b001ce5f09ffdfmr12298255plg.0.1701093557869; Mon, 27 Nov 2023 05:59:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701093557; cv=none; d=google.com; s=arc-20160816; b=BG6ezVgfdfMG9Eqw1OQyQ6XxIWkVmQQdsZ6k8kqrRTsj3QS2VqwKSdAphlzJfl4DgC PHHovKwAC1zaj1PUE+N9JLyQrFo1dj3ca01H/6zciocrS2EiBYpojF9KmHyRTUQshygj WuM7kPdMv4wg97/sUse390LM8QH3MXO3b18eQGKORdlnfS9+CwjZZFSS3/EvdMiytfKl sSLYHMVE2DBTMB/meKaO8MhkI9NajTkJ08ONqXBa6sST/azZwA88kA/MEQzVbkvVu8nq kdLvodS4UZVHINv8ci8N+39Zgr9BRGBImAD4OSzACyyGzJT6PFox+R92YOgx4cnBKknI 3Gvw== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=c7sVCLbdbIsSSVXrD1aEoLgXUO8xa7qqmhRYF03VJgc=; fh=rmkQOnoLQuv5Na9ltVyik64PE4EdqwoHW6kATkPHAMI=; b=xduB8dWoYTVi4GON/1I95MIDKuIKe/lmef+nz/kHE6XF3tOnncGUTcHvbW9i83I4t7 5m9mKErPThIfeuJHptx4KPvfTgHFHzrixuE0fiVGlif55s8JrJw1FxW7C0QXf9X8Zw8D EgQrlEsYPvGBrxLqzfB4x39OHuCntGVuf+O1oUVul4/36LvV8FJBiJzeiS+C9wE1fEO6 uueH6MvdZPJfRnc6wm8bIolLYcTJmHUzDLp2kDBiF3RPuto9L7VGhSGU8uaaaUImAn7b F4w6nIruXlrNEgeju1SHFH/TJb/VDgXQLWYG2u1QmAQBT441pek+BQAKlBBZM5hJXqUV doMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=1XjDfyKO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id ji22-20020a170903325600b001cfbd995c66si4133720plb.122.2023.11.27.05.59.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:59:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=1XjDfyKO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 023958022099; Mon, 27 Nov 2023 05:59:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233276AbjK0N6t (ORCPT + 99 others); Mon, 27 Nov 2023 08:58:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233522AbjK0N4p (ORCPT ); Mon, 27 Nov 2023 08:56:45 -0500 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D11701BFD; Mon, 27 Nov 2023 05:55:33 -0800 (PST) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3AR8W491020325; Mon, 27 Nov 2023 14:55:09 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=selector1; bh=c7sVCLbdbIsSSVXrD1aEo LgXUO8xa7qqmhRYF03VJgc=; b=1XjDfyKOELRTgDd6RM601zZBHKa4C6eUWK7Tj Ml4RnWHCCSMR8PjBTOkvJqqUvJ4/3XZycnRSif74GQKGsp5JsyyT7sOCLRGl7Bud +JkYOozYc2E81/a81bSylEIkSoM6A4qe+wgrsfhyCWxaXCTroo3+8E06iowGGTdx OouPXrukmWxNgndazEobvaFEbF5jjPvJ14E1GuWAZMgKF6OTNM3SIeHaHUfrBq/A lX6jbm7BxMmA3YQCBdqe650rbxtN73bdvs9SssGs/5AfdE4i/7hP120VxQIhd/fM gs6ka3dMgkBzhNNbg28xc0JwqNrijwS63dHQA4YbT7QUzWVEA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3uk8pjqq1k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Nov 2023 14:55:09 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id DAF7610002A; Mon, 27 Nov 2023 14:55:08 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D189A2291C4; Mon, 27 Nov 2023 14:55:08 +0100 (CET) Received: from gnbcxd0016.gnb.st.com (10.129.178.213) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 27 Nov 2023 14:55:08 +0100 Date: Mon, 27 Nov 2023 14:55:03 +0100 From: Alain Volmat To: Philipp Zabel CC: Hugues Fruchet , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Russell King , Sakari Ailus , Laurent Pinchart , Dan Scally , , , , , Subject: Re: [PATCH v8 3/5] media: stm32-dcmipp: STM32 DCMIPP camera interface driver Message-ID: <20231127135503.GA1423796@gnbcxd0016.gnb.st.com> Mail-Followup-To: Philipp Zabel , Hugues Fruchet , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Russell King , Sakari Ailus , Laurent Pinchart , Dan Scally , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20231122073927.788810-1-alain.volmat@foss.st.com> <20231122073927.788810-4-alain.volmat@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-Disclaimer: ce message est personnel / this message is private X-Originating-IP: [10.129.178.213] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-27_11,2023-11-27_01,2023-05-22_02 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 27 Nov 2023 05:59:14 -0800 (PST) Hi Philipp, On Mon, Nov 27, 2023 at 12:38:21PM +0100, Philipp Zabel wrote: > On Mi, 2023-11-22 at 08:39 +0100, Alain Volmat wrote: > > From: Hugues Fruchet > > > > This V4L2 subdev driver enables Digital Camera Memory Interface > > Pixel Processor(DCMIPP) of STMicroelectronics STM32 SoC series. > > > > Signed-off-by: Hugues Fruchet > > Signed-off-by: Alain Volmat > > --- > [...] > > diff --git a/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c > > new file mode 100644 > > index 000000000000..28ddb26314c3 > > --- /dev/null > > +++ b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c > > @@ -0,0 +1,604 @@ > [...] > > +struct dcmipp_device { > > + /* The platform device */ > > + struct platform_device pdev; > > + struct device *dev; > > + > > + /* Hardware resources */ > > + struct reset_control *rstc; > > As long as rstc is only used in dcmipp_probe(), there is no need to > carry it around in struct dcmipp_device. Oups, thanks. Indeed, in first series reset was being used in another place but this is no longer necessary now. Thanks. I fixed this and will push it into the v9. Regards, Alain > > [...] > > +static int dcmipp_probe(struct platform_device *pdev) > > +{ > > + struct dcmipp_device *dcmipp; > > + struct clk *kclk; > > rstc could be a local variable here. > > [...] > > > + /* Get hardware resources from devicetree */ > > + dcmipp->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); > > + if (IS_ERR(dcmipp->rstc)) > > + return dev_err_probe(&pdev->dev, PTR_ERR(dcmipp->rstc), > > + "Could not get reset control\n"); > [...] > > + /* Reset device */ > > + ret = reset_control_assert(dcmipp->rstc); > > + if (ret) { > > + dev_err(&pdev->dev, "Failed to assert the reset line\n"); > > + return ret; > > + } > > + > > + usleep_range(3000, 5000); > > + > > + ret = reset_control_deassert(dcmipp->rstc); > > + if (ret) { > > + dev_err(&pdev->dev, "Failed to deassert the reset line\n"); > > + return ret; > > + } > > regards > Philipp