Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3231130rwo; Fri, 4 Aug 2023 01:12:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9l4QlxlqHrNgF7vQ5y3S9kpjRbOhzh7sQxJwVYniP6ZmQMxkZwLntRxDuDX7RYn4BuOMe X-Received: by 2002:a17:902:c246:b0:1bb:b86e:8d6d with SMTP id 6-20020a170902c24600b001bbb86e8d6dmr885780plg.29.1691136775637; Fri, 04 Aug 2023 01:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691136775; cv=none; d=google.com; s=arc-20160816; b=Yt04P4msKx/WEpSfam7A5GUlAgmbVHwNgGI7Ku5Gi5AcJHcpHInjooe6edEmAJVS0W 1BjsfA4S21eenvW+60WK/TnADL8nc3LmfkY306oEyHrHVTqT5l5S95BSZKc6c/GeMfQF Q/1KwR4crbb6thEx8o6j/pst/8jmYFxYRXSdtXqawCyfj7rqQ5B8QX1WCmNBSq7xcGUF H70ffJ6Gsj9Mu/ANWcllQ3SHes8BMaxT3Bl1ZUz3JeKvdJIxnyBdzrUop1X4c9JhWm2i v3GdHghnZq0Qc+XpP8lw701o8NVwjuG8bxuTbiOvBPHySMYmncT/AfIKR6IIiZVRAINM vpug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=MGrDh/1hSwr3pJmv2Agn/SebV7nRrYJNL/2nYoem9Qc=; fh=YyvYwGHGTKEY27TWeN9beqkopmZftSgPPlsPJEd3CEY=; b=DBBb4pSIlVODdnrinLLQL15G1/ADp0D2lr1/tkobbFBiwzidzT0SvCqMO3Gv/GtfRa nhNYlQBbqo0gYE5b1paUJMstZ5o/zk4kBy5URhnFSss9JRb3guYL/gGnbQRcrM2s6t5F 4bHF8kFaPaCHE1kDt9/xI5NG44AexFzbxltBYr1SZnBMww+cciMD/qKMFRXa54Jviuug DInjH+XV0jzr4N7XA1qqUnCLqkyGKcdHsbsWUzoXbSigdzehXytcrsTpX6JU1wspQOPt zQHC5qRGoq2pk4YU9eB1oGmHHbf1DIE7EGeIaK/tPwnbJI9UnSRvUaBrAz92eAMdfbnQ u1Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=mq+OvgPm; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020a1709027e8900b001b694ecf48fsi1357308pla.71.2023.08.04.01.12.44; Fri, 04 Aug 2023 01:12:55 -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 header.i=@collabora.com header.s=mail header.b=mq+OvgPm; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233910AbjHDHfX (ORCPT + 99 others); Fri, 4 Aug 2023 03:35:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234004AbjHDHfD (ORCPT ); Fri, 4 Aug 2023 03:35:03 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D90BD4ED7; Fri, 4 Aug 2023 00:34:50 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 6B6D366071B9; Fri, 4 Aug 2023 08:34:48 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1691134489; bh=MXbusVUsaCgkKBWlp45fgfQiAF4swbRrk9BMMk9IFdM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=mq+OvgPmNdNb5U2BdRb7h+9YCFOmonTNcfmb6SEl352eZJBvgy6lCgJADLaU+XCtl WufTLrs/KPODEoOh3DGPz9FIquGjpms8x2+u4HGNluiFQy/JrGOsaW0moyx2K8blAl JRfCTTMp7PR1d0+L5mRmITZVBr/LPiCA2/YqiNIiCP5yBBhG87GX9+s9G+INO61gKD TjAD5qYOFB4GT/3YJSjTUq1C4JCpvfrlzuQtkupYu2xcXhWDpBPvZSEBXn2FYyNDFG Oa+COXPZh0UOqoai2z7nwKLu28ihrwj5lLmHfr5deUKt0wiAz8w+nH8EegePDa7fTO D8DPraXxpCHPQ== Message-ID: <52744f4c-9344-d49a-755a-cc7f7962bc9e@collabora.com> Date: Fri, 4 Aug 2023 09:34:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 4/4] media: platform: mediatek: isp_30: add mediatek ISP3.0 camsv Content-Language: en-US To: Julien Stephan Cc: Phi-bang Nguyen , Florian Sylvestre , Laurent Pinchart , 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 References: <20230630100321.1951138-1-jstephan@baylibre.com> <20230630100321.1951138-5-jstephan@baylibre.com> <0430ddab-6a6c-9fa3-95bd-05ce8ac5b94f@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 Il 03/08/23 11:53, Julien Stephan ha scritto: > 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? > Right, I was thinking to make a void __mtk_cam_init_cfg(), but as an afterthought it's just better to leave it as it is, let's go with your solution. Cheers, Angelo >>> + > > ..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 ;) > > Cheers > Julien