Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4604628rdb; Tue, 12 Dec 2023 04:35:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNoOChsA5B6QGEQ49GzUKZjkuQQt+NiDd1VEyEKeD6LhOPtrw8oPnihFnHiCSYVR20/KvT X-Received: by 2002:a05:6e02:156c:b0:35d:5895:1d1b with SMTP id k12-20020a056e02156c00b0035d58951d1bmr8460348ilu.24.1702384507693; Tue, 12 Dec 2023 04:35:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702384507; cv=none; d=google.com; s=arc-20160816; b=qNQSESFXblJXT9SE2VDli924nYGrvUysWOGZVgi3TPvGIaW0xrwu7g/uKbZErutyG9 HqnQzrNllw6n9nCcLExteO3Vtqe4x+Da5+UJvrcVYro1NxgkeeiSH74oV5eYd4ie+h9h +5MHirNeqSpOGFrf11k/APuJISn5EhXElwJrgRrDnpaYsi0oUIj6E3r2wTxjKdddjlCv YG0npyBFapTiQqZ6Ok/B2/XZ8XmB6N2CnhrFuc/jqr8G7dpZP3Oi03a0bExz7/TTp6Qz x4PmMVqgwmoCL77F5zYHoibIxEpGKouynLcz/xPeiXfy9hVyTolfk1O4O6l2HxjzJxJP gWNg== 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=Bvx4llvsy+AeH3YVy00vlMmMAipNsKbnOF73viAS84E=; fh=s1CQY0/vGNKD6hxupjbHYNQ+YJ74biE6zd3BiARPjrU=; b=v+Unzu75xra/rkgQk3CfJezrQovqH95lL5kPSFs4oXRWasbcYNXzIH2w36IARqFwvi bIXz0YLhkLxwTBMY+bVyjhmBsoqyyxuU0Uu9ROIzyhigdxPPsWmwajs2jY4pXz74d/xW Qc4qwwJz7xgOHNp3VhYmTpEzRz3CHoarnNje2eS+JUfDWaAs6Sx0I3HamykgDJG18ahW QNs01dSByjg+kI32YSlMEJkmqyFJNrQ0EBD8fBSBNg1iPfQo/OzwF7GptMB0wzTUhRrO 6cw06QVu1QucSKvQi/BADF+BFtAcWisDXvarO9Gwjxfbq2zElaGEjVTTVY7JxKmsAzwG BW+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MFtjG3Rz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id h16-20020a656390000000b005b368301d97si7672276pgv.305.2023.12.12.04.35.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 04:35:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MFtjG3Rz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id A0EE18068858; Tue, 12 Dec 2023 04:35:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346542AbjLLMex (ORCPT + 99 others); Tue, 12 Dec 2023 07:34:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346538AbjLLMew (ORCPT ); Tue, 12 Dec 2023 07:34:52 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA46394; Tue, 12 Dec 2023 04:34:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702384499; x=1733920499; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=1t4WPBB2iV6mGz2IjxnelPLPuKPitQiGr3DtbVpwRDE=; b=MFtjG3Rz4EdHyJ0cuYXccAnB/E9yqRaZ2D0IxWnhlcFv7XCPcm3UO/1M VVzKiP7urUBvHAV8FjNLMtSuTaW+hUZPt7F2hT3JCTM5Ny1/zpDc0moK+ i0r/ses+hj3nbAflDTLdWlspLWFq4j4Wt12g7kQsYW6iKF1m6BW6+WdzC C0XhYd4elvl0j9pVLN5Aa4vItLZRayv7g/tJd0Guoqr8r4tfuUyUr9IbH Sm3eiq/D8nLv2WrtLtlJb+yRGAnOI5iWQwYFa2ZxIs3x0iu2X+FalohPB r1yy0HueLrLL0Oqwx5NoYZTYet/fNh8Jtgfa99EeVWrtvngS91fs7zr6N A==; X-IronPort-AV: E=McAfee;i="6600,9927,10921"; a="1951097" X-IronPort-AV: E=Sophos;i="6.04,270,1695711600"; d="scan'208";a="1951097" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2023 04:34:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10921"; a="896909252" X-IronPort-AV: E=Sophos;i="6.04,270,1695711600"; d="scan'208";a="896909252" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2023 04:34:52 -0800 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id BA8FD11F7E4; Tue, 12 Dec 2023 14:34:49 +0200 (EET) Date: Tue, 12 Dec 2023 12:34:49 +0000 From: Sakari Ailus To: Tommaso Merciai Cc: laurent.pinchart@ideasonboard.com, martin.hecht@avnet.eu, michael.roeder@avnet.eu, linuxfancy@googlegroups.com, mhecht73@gmail.com, christophe.jaillet@wanadoo.fr, Mauro Carvalho Chehab , Liam Girdwood , Mark Brown , Hans de Goede , Hans Verkuil , Tomi Valkeinen , Alain Volmat , Paul Elder , Gerald Loacker , Andy Shevchenko , Daniel Scally , Nicholas Roth , Linus Walleij , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH v15 3/3] media: i2c: Add support for alvium camera Message-ID: References: <20231204094719.190334-1-tomm.merciai@gmail.com> <20231204094719.190334-4-tomm.merciai@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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]); Tue, 12 Dec 2023 04:35:06 -0800 (PST) Hi Tommaso, On Tue, Dec 12, 2023 at 01:17:45PM +0100, Tommaso Merciai wrote: > Hi Sakari, > Just a clarification about the following warnings: > > Fixed on my side with: > > CHECK: Assignment operator '=' should be on the previous line > > - alvium->is_mipi_fmt_avail[ALVIUM_BIT_YUV420_8_LEG] > - = avail_fmt->yuv420_8_leg; > + alvium->is_mipi_fmt_avail[ALVIUM_BIT_YUV420_8_LEG] = > + avail_fmt->yuv420_8_leg; This one seems good. > > CHECK: line length of 81 exceeds 80 columns > #1085: FILE: drivers/media/i2c/alvium-csi2.c:1085: > + if (!alvium->is_mipi_fmt_avail[alvium_csi2_fmts[fmt].fmt_av_bit]) > > CHECK: line length of 81 exceeds 80 columns > #1102: FILE: drivers/media/i2c/alvium-csi2.c:1102: > + if (!alvium->is_mipi_fmt_avail[alvium_csi2_fmts[fmt].fmt_av_bit]) > > > Fixed on my side with: > > /* Create the alvium_csi2 fmt array from formats available */ > for (fmt = 0; fmt < ALVIUM_NUM_SUPP_MIPI_DATA_FMT; fmt++) { > - if (!alvium->is_mipi_fmt_avail[alvium_csi2_fmts[fmt].fmt_av_bit]) > + if (!alvium->is_mipi_fmt_avail[alvium_csi2_fmts[fmt] > + .fmt_av_bit]) I wouldn't introduce a line break in these two cases. > continue; > > Can be ok for you? > If yes I'm going to prepare the patch on top of your media_tree/master > branch. Ack. -- Sakari Ailus