Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2843597rwo; Thu, 3 Aug 2023 16:21:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8p6Ea8xRDp8/0RflNnF87Us8d4+7H04mhHaku5mFX7sCwOahG5DSEJ+EjAgko9vN+UBoM X-Received: by 2002:a05:6a20:728c:b0:13e:1945:8857 with SMTP id o12-20020a056a20728c00b0013e19458857mr26128pzk.37.1691104910425; Thu, 03 Aug 2023 16:21:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691104910; cv=none; d=google.com; s=arc-20160816; b=rxYMU4Ngnbpvd/p288+omi4bX8rEgYQ7UMux0HbEIIkJEf6K7VGWpKfgeN18bNeMme B/Z6iTfhcOcru1uGDx67KgTg3Za3qxtpupTPs59QOYStf1btvJNAz6mWGyHXeIRgjUlj 6bGlN3pCeYYSd5nzGU8QZT0masNgmHmLzb/JDrqhIwN2uFrwsXkAB+087fpqHyIlNS1X N22Mp+DEYfEactbmk5EDlLM6ObPlAKphUKHteSsckulut7cfnbs3RZGBG4aRUvTxZfJM UR738iedB9qqVbdeJUQMiM/HpwPH/HLhbflsvS9MYR3wdBox+Hf4ZtY+rr03xmByTu9n oyvQ== 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=DcIry1mrhc70xplksnRDogu5Y5PdR7Z+J+ZF79y2OCo=; fh=LUFag3N9FoOnAsqPBd95685GvZX6MOHBBukQx+6FsS8=; b=Vz/8MYgPwHBu/lQW1U7fMXAbL3BZne6NTZTJZ8nIc+rXAU5j29b7E0YKkGK66eLdpW 09MYqMAqrDyaNFXzZ1w5kfSweaOaCtYGVPOcNNvATJyErff/tlNzNeJFecIGL3y8Whmn VrdQ6HY7huhaMzS3ejCsJo6KW/EVlf4djiBnVjB2sKEK6GZVEHemtW7KR8PCvEpgg3Tx kx+y9k1xeRzBIVBAlG6eQFMheeLgEEBvSs+lIjxQiCwL/dGkJ6TLdt0qW3PybUCesp5v jT7KkrUE+CDPtqWJIs8b+8BhuK7IkX5jaEmFPh3NnqXI0BVOAnqs3rxljREj83jcXSBn m0oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=uBcmASI5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v10-20020a63610a000000b005638b026f6bsi719208pgb.522.2023.08.03.16.21.38; Thu, 03 Aug 2023 16:21:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=uBcmASI5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232347AbjHCWac (ORCPT + 99 others); Thu, 3 Aug 2023 18:30:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230478AbjHCWaa (ORCPT ); Thu, 3 Aug 2023 18:30:30 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDAAC35AA; Thu, 3 Aug 2023 15:30:29 -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 C288312E4; Fri, 4 Aug 2023 00:29:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1691101764; bh=LdfWIHFVh0wD7ytkzesn6ipqy1pHCP4s5brCJFt0pZw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uBcmASI54b2A8zO/XorpCjFOoY63qQ4IWmiNFFz6/6Vzbl8XF6HbyQiLSUv8ohiFF V/i6P3OsBTCmnrz710MIIILwOCvVaSx+qhfWjf8NccoFQFHSurGnPB3k1ngJflvGdH KMch+ILrw2I4fNZXmXeUZr4f/yxSaHI2hOFqfJi0= Date: Fri, 4 Aug 2023 01:30:34 +0300 From: Laurent Pinchart To: Julien Stephan Cc: AngeloGioacchino Del Regno , Phi-bang Nguyen , Florian Sylvestre , Alexander Gordeev , Andy Hsieh , Conor Dooley , daoyuan huang , devicetree@vger.kernel.org, Hans Verkuil , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-media@vger.kernel.org, Louis Kuo , Matthias Brugger , Mauro Carvalho Chehab , Moudy Ho , Ping-Hsun Wu , Rob Herring , Vasily Gorbik Subject: Re: [PATCH v2 4/4] media: platform: mediatek: isp_30: add mediatek ISP3.0 camsv Message-ID: <20230803223034.GH9722@pendragon.ideasonboard.com> References: <20230630100321.1951138-1-jstephan@baylibre.com> <20230630100321.1951138-5-jstephan@baylibre.com> <0430ddab-6a6c-9fa3-95bd-05ce8ac5b94f@collabora.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,SPF_HELO_PASS,SPF_PASS, 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 On Thu, Aug 03, 2023 at 11:53:35AM +0200, Julien Stephan wrote: > On Mon, Jul 03, 2023 at 02:21:17PM +0200, AngeloGioacchino Del Regno wrote: > ..snip.. > > > + > > > + mtk_cam_init_cfg(&cam->subdev, NULL); > > > > mtk_cam_init_cfg() returns an integer, and this is probably because you expect > > it to get logic to fail: in that case, check the result of that call here, > > otherwise, make that function void. > > > > Hi Angelo, > > mtk_cam_init_cfg returns an int because it should match v4l2_subdev_pad_ops->init_cfg prototype.. > > mtk_cam_init does not fail, always return 0, so I though it would be ok > to discard the return value here. What do you think? Fine with me. > > > + > > ..snip.. > > > > + unsigned int bpp; > > > > Can we get any format that uses a billion bits per pixel? :-P > > > > u8 bpp; > > I am preparing the driver for futur upgrades.. in a billion years ;) -- Regards, Laurent Pinchart