Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp363083rdh; Thu, 26 Oct 2023 04:36:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGWZXDtHykVd9t4fBBJtQ6f7AtbHJ0V7tnzyoPzf0sMLL4XpVKhmRswa36e1/spQBwy/D8a X-Received: by 2002:a05:690c:709:b0:5ae:15bb:466a with SMTP id bs9-20020a05690c070900b005ae15bb466amr3985835ywb.14.1698320176709; Thu, 26 Oct 2023 04:36:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698320176; cv=none; d=google.com; s=arc-20160816; b=P6J52Nq8Esup028GbEBVQUoy8L0Xf3KDpa2Y6xbt1SIwoOuOJTgHPmXrm6CCpHopbW X/Qqza3+AcsZ+l9mnObmh2NAZcRB1ikkaOsluC6qSaFxNt3+MdXW3USYdQ2qCVqyvDoa zJW4VGvXonSCh8MjYR5fd9+3uV7yYOpRwPMj1+j2Yt3uZKQGZvLae+kzvnLZkoNtkMnc paJsgZ7WdYZDeJ3FlrhAKEakWpT1wu/1jlVPHWkydbC8Lf6HatTUffiUxgN9FqTnKxtf IV5UkR8OIlWMWMQwgl1x8g3M8w30SHIxX8PPU2uDf06pPyU+MirJ5iLDU8ODfiiEER4N rMfg== 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=N3bIN5Ks+RPgz38lreC6LFrvVFrk+iCy9ONxzQsiKQU=; fh=Idj7La1KSAhbS6KmQ0V9GN7SzCcBozSLQf3vr/LguiI=; b=wnBKjlIHfw3CF+ild51+ttfYoMScGWlo9PVLkzeh08/yRj1a0sFPP1jmEAHgV22r6H A/t+C5maG5nssSx0bjcmYJafJiIzvUSXsDGFPJro2r1M1anqyJkw98GNR4YczWC3FZuH PUvhWBdYzb0Lq5SDOZPYCZQH77E+hyUWnQqeaoYPwtI+4KBb8OPW66gMha7J7v4uYDVk iIssZ0YPn57WGvlY4Hek5RGwBAuVGHM0quIh5Hvl29j9pF6xqLraClmZ8Tef/MzYBLHV YvClJyzvUk4I6Y/9le38omtj9FSSnUvzCVZmfJP9JWfgw600tU9viibk7O+d8AB4e/ij H/xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=gmSyXJoh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id a5-20020a81bb45000000b0058650c1ea27si14485150ywl.540.2023.10.26.04.36.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 04:36:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=gmSyXJoh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 75BEE82164F3; Thu, 26 Oct 2023 04:36:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344814AbjJZLgO (ORCPT + 99 others); Thu, 26 Oct 2023 07:36:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbjJZLgN (ORCPT ); Thu, 26 Oct 2023 07:36:13 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 533EB1A6; Thu, 26 Oct 2023 04:36:10 -0700 (PDT) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4C6E983B; Thu, 26 Oct 2023 13:35:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1698320152; bh=3J1zW6vJbN0ZPEVT41jA29B2NH3cxfkd2aquGwq/Rl0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gmSyXJohwrhb64vD0qAeYE5ZQKFoszfn9eG61TKV56cR6LOaJncpo388lxekwAb0V Cf4auU/IuQi+fHPzxDbtMRrc9W44M1fQfd4UVbhOBSBmVUXQuLoQH9ynKibt5VWu0l GnhH5CsdythbIc9q1J35p5BBs6KHoL2JAZB242o4= Date: Thu, 26 Oct 2023 14:36:10 +0300 From: Laurent Pinchart To: Sakari Ailus Cc: Alain Volmat , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Russell King , Philipp Zabel , Dan Scally , Hugues Fruchet , 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 Subject: Re: [PATCH v5 3/5] media: stm32-dcmipp: STM32 DCMIPP camera interface driver Message-ID: <20231026113610.GA26306@pendragon.ideasonboard.com> References: <20231010082413.1717919-1-alain.volmat@foss.st.com> <20231010082413.1717919-4-alain.volmat@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 26 Oct 2023 04:36:15 -0700 (PDT) Hi Sakari, On Thu, Oct 26, 2023 at 11:11:53AM +0000, Sakari Ailus wrote: > On Tue, Oct 10, 2023 at 10:24:03AM +0200, 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 > > --- > > drivers/media/platform/st/stm32/Kconfig | 15 + > > drivers/media/platform/st/stm32/Makefile | 1 + > > .../platform/st/stm32/stm32-dcmipp/Makefile | 4 + > > .../st/stm32/stm32-dcmipp/dcmipp-bytecap.c | 916 ++++++++++++++++++ > > .../st/stm32/stm32-dcmipp/dcmipp-byteproc.c | 555 +++++++++++ > > .../st/stm32/stm32-dcmipp/dcmipp-common.c | 106 ++ > > .../st/stm32/stm32-dcmipp/dcmipp-common.h | 216 +++++ > > .../st/stm32/stm32-dcmipp/dcmipp-core.c | 603 ++++++++++++ > > .../st/stm32/stm32-dcmipp/dcmipp-parallel.c | 441 +++++++++ > > 9 files changed, 2857 insertions(+) > > create mode 100644 drivers/media/platform/st/stm32/stm32-dcmipp/Makefile > > create mode 100644 drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c > > create mode 100644 drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-byteproc.c > > create mode 100644 drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-common.c > > create mode 100644 drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-common.h > > create mode 100644 drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c > > create mode 100644 drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-parallel.c [snip] > > diff --git a/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c > > new file mode 100644 > > index 000000000000..4f784c5791e7 > > --- /dev/null > > +++ b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c > > @@ -0,0 +1,916 @@ [snip] > > +static const struct dcmipp_bytecap_pix_map * > > +dcmipp_bytecap_pix_map_by_pixelformat(u32 pixelformat) > > +{ > > + unsigned int i; > > + > > + for (i = 0; i < ARRAY_SIZE(dcmipp_bytecap_pix_map_list); i++) { > > No need for braces. Up to you. For what it's worth, I usually ask for braces in my reviews for these kind of cases :-) > > + if (dcmipp_bytecap_pix_map_list[i].pixelformat == pixelformat) > > + return &dcmipp_bytecap_pix_map_list[i]; > > + } > > + > > + return NULL; > > +} [snip] -- Regards, Laurent Pinchart