From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B8AC1C25B48 for ; Thu, 26 Oct 2023 12:04:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Oz7N9A+H58oBU8nMS0HtsFF5dsQt9901Px3+IV0svpQ=; b=T1EowG3ib/obj9 x+/IAiwIiz2wTgmYVY7XKlmukFSSroFrRjLtNDXrX2J/8AOajhM3MX/z5c/yBTAp34BTuqKrlOFCA 1Kz7XcM4nKk/21AAvwzb6AB29FFB+bmmQtlRW+HNUH6tVMDQuqyfCKONnaRIC/wSzYWOtNvyACSgd sBSJ7PyTOOMeSRBPNcWhIJvFZ0LP5X2qFx+2RDkMi6rwRoriDQThJ3Gm326sV1JM2VP8NTmbUg9Y5 q0/J45jbjeq34z1HAzcnc//Q/Lm/ZY5aZkunz/GqVQ7piJjh+FyCn8ywJSPVNCm528ZdNW4t6WUNE jmvBJalnIQnAZpjWjXYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qvz5w-00EPoR-2y; Thu, 26 Oct 2023 12:04:12 +0000 Received: from mgamail.intel.com ([134.134.136.24]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qvz5u-00EPny-2M for linux-arm-kernel@lists.infradead.org; Thu, 26 Oct 2023 12:04:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698321850; x=1729857850; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bPxFPOB+uABI4b6Z29a2Va3fCZZ8fMnOaXE6EGDl+gA=; b=SY9PgCic+hostvKEjhdGF1Ap5kxljmnGeZdCtvNGs7ISUBvd9HpddCaC tDWBl472C/BlSuTwFxJtTpZNV9JB0bHkqWqGqOYgCA1ObVjnQsyBqTsXa 8cwNensaYYHozIT/YzzBWY++DHACdA1OefQsJoz4wTED8ezTRup8Dl5i7 XFH6lP5S1PqVr5P8vX45c79+zSO3A75tJ6e5wW1SOJWj6z6TeZ4Ya/sv8 K7uT354xxj1hA/mAeskPMupYk2NESGTVFgLlimb7yEbZIZphnbn4kAIfB UXrhNqlvKLIL3GE9IolvIoCEe3tlyOg4BXBzgSXGAGSVovf0ZRn1HRMJG g==; X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="390388818" X-IronPort-AV: E=Sophos;i="6.03,253,1694761200"; d="scan'208";a="390388818" 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-Disposition: inline In-Reply-To: <20231026113610.GA26306@pendragon.ideasonboard.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231026_050410_873235_BF886FAA X-CRM114-Status: GOOD ( 25.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel