Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4594681rdb; Tue, 12 Dec 2023 04:18:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBdYRIbgrolZSjW6SRTLLwYWTE0qX7Q75LHwxTI8G6fVE8pSVzrJ6Y7YrhU7FkPjWprCG2 X-Received: by 2002:a05:6a20:394a:b0:190:7c:b3d2 with SMTP id r10-20020a056a20394a00b00190007cb3d2mr3484441pzg.43.1702383483725; Tue, 12 Dec 2023 04:18:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702383483; cv=none; d=google.com; s=arc-20160816; b=qvduzS5FPlrz4eTflvxm0oRi20c+zQxj2gilDCH1iYVCJJ52XKx+dG7n1m9E0b4ZYZ im8qoIKQHiqc7T8QKX4+6nm7+xVT7LIJDOmFXbAgL1CmoBlKqE+R5E9GtxosPFDPH6FO vFbB8lLfminMrJNN+CPhcbnFxRbA4DNzqtyrUcm0SZao39LzTdsKe0lt9zPQoGsc0XqA vPW+SU0WHv1OnPDBj4Qsyts0fwtuqExeyDyC9a5qyq+V/tw7uuCMHseV6ZxANI/iEXVU n+tzf1KGzl/vUbBk3b0G1eNxH4HMaRYJaCmAA+Nmxf2vG/FQSc+CV5C82QnS7NmVSWKy gE7w== 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=3+HQb//Q5UqWfr8qTwrSIcTWToITh4nz6I2/WURW9m0=; fh=1k71XqR1qr4KTH81GYZ2v+IdUm06pSx5+TccJ4siIi8=; b=saYHLMzSP4b5uCG/hqoceAwNSv5OPDZkcHjp7y81m6NJGW6nyrz22ReHZ7NfUPGFL2 UrCx6XhibX8GxnZBgLonkpvKpf1uLbCbXLzldQajaRlhKe95PqCV7zZgUmFno6UuZsbO Tlj2CRl4wNw2oXRA/1IZEurX/08X9ZNy2yW50limzRQHCQIBG26r8+1qEb2nHxj3N0ox VyJMF/MQMaSCCYHW4Y2NVVJO/BN8pee1t6rblCS4+wyYGaN4qUPo9sDchL2Yl97sCCY2 0IwE+o+JZooWKsxF7fseVBW/mWAoisifHc+/GuRFpm4nbxWGaT2Rie7sMra/uf0D3YG2 KZ8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dXWk0gh5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id k24-20020a6568d8000000b005c66616240bsi7712385pgt.567.2023.12.12.04.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 04:18:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dXWk0gh5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 041138077A7A; Tue, 12 Dec 2023 04:18:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346425AbjLLMRp (ORCPT + 99 others); Tue, 12 Dec 2023 07:17:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbjLLMRo (ORCPT ); Tue, 12 Dec 2023 07:17:44 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24F58AF; Tue, 12 Dec 2023 04:17:50 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-333536432e0so5193417f8f.3; Tue, 12 Dec 2023 04:17:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702383468; x=1702988268; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3+HQb//Q5UqWfr8qTwrSIcTWToITh4nz6I2/WURW9m0=; b=dXWk0gh5011IbAUkFpkGinnHiApsQrT97R8LqWpUB14aCI1TC5SobslYKfupSIufOh z+CHyqo9Mgvikw+oq94YtKI1l2TEp4jFsXXpZdspoPMVt6U1nxRTrwAqNJDqJkJaeBTZ Milc8bBnrKX8QLbPTM3vvnQorJh+jmA0b8lI/W5yhc63JlzgqLIy+k+itCw4WvNXSGqt 9FjBXxmRQ/7pq/rrRHMkXad+VTF4bP5AiB1eAwI7epochYodhGheGMuMPi82dCjT8QsF u+Dns66MSuBTjBrp+hYiwgnaCBHhB68u/lPjTOi23Jx284Uw5mSHVN+nHub7I/jBmlQA HH0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702383468; x=1702988268; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3+HQb//Q5UqWfr8qTwrSIcTWToITh4nz6I2/WURW9m0=; b=IE8FingtNXCSZvImSrPmh6rFPeaZ1JMgo0n8Mn39J5XTfGaXCoXfJ3nVpZVuyzO7Te lOLq+w+lbEfFU+gUKE3o5vxsqwqKoDOHIqfhxz6JRuq5h3PjhbOfcF/lsE+tl+46/1rF U5EXBU/DDyRYgNymGvhxurzyxi2ELEGR0lvBXi5T9vN9R6IBO/W5OleO/EAPQC88Iys1 tSLSc9pzvBk48f6cwcYKovv1hWnfK1OoPD0d945rMeT5+opkFLC3oMKBF+nvo8g6B1Id p8qaj02bf0D1R+pVylGBENC4uuPKJYOnSNshMwYWegPu1qLZcjqzLlORX1vD8TIzAHMl 6dag== X-Gm-Message-State: AOJu0YzpCtgt86Qmtb6/ZFrhntuBo3IerCAxOAiLlnazle6aIspGJ0a1 2PHnGwjMw6HgD6MRzjazHJY= X-Received: by 2002:adf:fb44:0:b0:333:3f5d:63d2 with SMTP id c4-20020adffb44000000b003333f5d63d2mr2710731wrs.3.1702383468231; Tue, 12 Dec 2023 04:17:48 -0800 (PST) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation (net-188-217-59-229.cust.vodafonedsl.it. [188.217.59.229]) by smtp.gmail.com with ESMTPSA id k17-20020adfe8d1000000b00332fa6cc8acsm10675016wrn.87.2023.12.12.04.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 04:17:47 -0800 (PST) Date: Tue, 12 Dec 2023 13:17:45 +0100 From: Tommaso Merciai To: Sakari Ailus 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=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 12 Dec 2023 04:18:01 -0800 (PST) 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; 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]) continue; Can be ok for you? If yes I'm going to prepare the patch on top of your media_tree/master branch. Thanks & Regards, Tommaso On Tue, Dec 12, 2023 at 11:47:52AM +0000, Sakari Ailus wrote: > Hi Tommaso, > > On Tue, Dec 12, 2023 at 12:44:46PM +0100, Tommaso Merciai wrote: > > Hi Sakari, > > > > On Tue, Dec 12, 2023 at 11:38:42AM +0000, Sakari Ailus wrote: > > > Hi Tommaso, > > > > > > On Mon, Dec 04, 2023 at 10:47:16AM +0100, Tommaso Merciai wrote: > > > > The Alvium camera is shipped with sensor + isp in the same housing. > > > > The camera can be equipped with one out of various sensor and abstract > > > > the user from this. Camera is connected via MIPI CSI-2. > > > > > > > > Most of the camera module features are supported, with the main exception > > > > being fw update. > > > > > > > > The driver provides all mandatory, optional and recommended V4L2 controls > > > > for maximum compatibility with libcamera > > > > > > > > References: > > > > - https://www.alliedvision.com/en/products/embedded-vision-solutions > > > > > > > > Signed-off-by: Tommaso Merciai > > > > > > Could you run > > > > > > ./scripts/checkpatch.pl --strict --max-line-length=80 > > > > > > and address the issues in a patch on top of this set? > > > > > > > Yes ofc. > > You need also the following? > > > > --- a/drivers/media/i2c/alvium-csi2.c > > +++ b/drivers/media/i2c/alvium-csi2.c > > @@ -2426,8 +2426,8 @@ static int alvium_probe(struct i2c_client *client) > > goto err_powerdown; > > > > if (!alvium_is_alive(alvium)) { > > - dev_err_probe(dev, ret, "Device detection failed\n"); > > ret = -ENODEV; > > + dev_err_probe(dev, ret, "Device detection failed\n"); > > goto err_powerdown; > > } > > > > Let me know. Thanks for your work. > > Thank you, but I've already addressed that in my tree. > > -- > Sakari Ailus