Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp379448rdh; Thu, 26 Oct 2023 05:04:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6EPmD1gg7nUThNBHiPxytD1EPX9yMmvyTVZVYSCYugKzhgmz0VmAMUFApttYNMbmZf134 X-Received: by 2002:a05:6808:1ca:b0:3a7:7bd3:7ab7 with SMTP id x10-20020a05680801ca00b003a77bd37ab7mr19625698oic.51.1698321887523; Thu, 26 Oct 2023 05:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698321887; cv=none; d=google.com; s=arc-20160816; b=cONk35Xn8hJtTKgzBjwH/krLj9i1rQ21USc3OiKDQAFXOCgAdyLdgv68LoAJmncpWA +CABBvgFDq0YTCGkkRmawNBS22vF+c6aQIPIfNW1/PYbWqhUYlNcrTemYG7KyKQ2Jy27 F9SO1RegRqKjlF5c5agvhIkc+S4GrZ49SLZVAbCAdKI9S8TE0LtTODGbiDh/pqgPF3KO S5tOQp8RsJ5mIDN8JUnGM1QB5ged1eNHoWSAy4ER/nDyVRNIK9hSbmYZVpj2dWjOnOyx zeZUjc4n1RSmPNSm1sc7lH3X1voTxnvCwWy3QogocGoyVr28QGDHIPWH/N/q+eQ/o2Gc QIXQ== 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=t9h4/ZGDUeiwkCSD8ylrdo0gyuQ0T+oMwv40v6anS64=; fh=XlfeCeXkrUzx6Nbqla0aJW1tlFMgF4dO9BPFF2MVK4s=; b=F9jB4kqAk1au2oXL1YK/MRoTICOuGSNVopauZn4Fmxd4F6PnrnTN/LEtBojyLHgcMN 002LFpr79uGZWzODTGLvUIkzBaJnqfUSQfIbpipl4e739rXPqZIV/ZxiLvWPxnSpS2x5 IVTh2hKcY5z+YVD0xXtBnx7E9FVrm0+mD2MfqzwVmep2NZRNR9I5sJB3Pf1siSOjLJSd 4LN5EisAKw3mErW59Y12tjfxfoBXfDJfaPWp5uvSEdxi7015EWargGKEcU33Zp+KyQWl VNPY0NDAmoSfj4c7Roe1T63XbBXJEmV50SrIZzbtDkclFhuKoF2U0A7Huo/MxwobG7+g z+Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aCskNPz2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id c10-20020ab030ca000000b007b5f4b326c1si309993uam.213.2023.10.26.05.04.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 05:04:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aCskNPz2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 6D9AF818450E; Thu, 26 Oct 2023 05:04:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230505AbjJZMEL (ORCPT + 99 others); Thu, 26 Oct 2023 08:04:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbjJZMEL (ORCPT ); Thu, 26 Oct 2023 08:04:11 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 201EE111; Thu, 26 Oct 2023 05:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698321848; x=1729857848; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bPxFPOB+uABI4b6Z29a2Va3fCZZ8fMnOaXE6EGDl+gA=; b=aCskNPz2t30rymQh8/G6phZ9v2r6j079OUTgrzQPlountbHNBM/l7UkY rIYz8FZqKn+jY0m9sfX3UIVW98INu5/B8idIqCgcvpIzGiD+8FvARzwip 9dO+44AOsirJavxIbgGF6W6Le/+QQxw/8W+NZV9oOEJs/Sgz7ASDCpv7s TBOyqKZUAZjALYXcnZ3sjSBVFwLAZfnEIEoRkOjKCZvVgSqgtIsVKgd3N 3A2Xb9lGf+kEK17GbUUZuwYg6Y2YeDh19CNoskCEiyfKvh/4z6guUMOMy Ma1i7nmORbAcz31KzNcFMwC2JMurv+mNpin65Z/EmDJfBJihXhLGCbuHL w==; X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="390388811" X-IronPort-AV: E=Sophos;i="6.03,253,1694761200"; d="scan'208";a="390388811" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 05:04:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="829607382" X-IronPort-AV: E=Sophos;i="6.03,253,1694761200"; d="scan'208";a="829607382" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 05:04:03 -0700 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 4CEBF11F758; Thu, 26 Oct 2023 15:04:00 +0300 (EEST) Date: Thu, 26 Oct 2023 12:04:00 +0000 From: Sakari Ailus To: Laurent Pinchart 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: References: <20231010082413.1717919-1-alain.volmat@foss.st.com> <20231010082413.1717919-4-alain.volmat@foss.st.com> <20231026113610.GA26306@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231026113610.GA26306@pendragon.ideasonboard.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 26 Oct 2023 05:04:27 -0700 (PDT) On Thu, Oct 26, 2023 at 02:36:10PM +0300, Laurent Pinchart wrote: > 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 :-) Well, if you read the coding style document, you may find this, but people don't interpret it as strictly anymore anyway. I think it's fine without. -- Sakari Ailus