Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2097807rwo; Thu, 3 Aug 2023 04:49:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEWtxIrBX39SfVhEKCZ4hchfeX3CKJduHy4UeAostypEWeTIj9hgsHSBl8daZL8mdzQqSHK X-Received: by 2002:a05:6a00:124c:b0:687:82a4:49fa with SMTP id u12-20020a056a00124c00b0068782a449famr3196140pfi.6.1691063384954; Thu, 03 Aug 2023 04:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691063384; cv=none; d=google.com; s=arc-20160816; b=ZXiGVd+3zec+ZBbWmHEpfbS1w6uW35Wuf9H8heiZDikWqKEmgEKWEQJ21ihktCVd91 HlYsKS2qb3Sj7gpeZyAumJVcLHUeBluWqgNwF5DLXtjVSpR+H+N0jrSsK/R0kweItinP kKbqmfUtmJbj8kNVv4UpCQL4X7qFYLW2+O+svYK2itzqJ/Y5YPISBHjm0k9rR0Towi38 o5R5bVA0JEoVUqD2PwY8bXFTzcXa11zpVBJW59kdKRbpeuz+j9nQKJirtoMGhB1W++GT unjS+ttZPkdmyNDBFTbcPsyob2/rMlGRAVftQ1c7EFSR3CSLgonJIM/bLNyUhi1WUtHU uu6w== 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=o/B0ToLExP+DiR9D97raY/1J2KSwUj5aVQTHcLopPW4=; fh=pjKkptagL4q3ch6VV9PYe9YbKQ2FkKD+IKQjccs4nNM=; b=l7CjGdsADOU8AqKxbUnFyhoCRJ+WLLVlFH6HWDrBSbOctRvVOVfarB9t4FYZ0l+Xr8 2duaeyuy1TcdMAStRabMOip3cixqVtxN7uD86BpK1a+s9hC1wawt38rDtS3LrWeJfAEQ SwxfzOljuDdY9LYHM1bn/g1DYkcJa3Yo0hCSMiNVN24gXmUjOeWv1yPMa8cMjumkcTIJ iWTj0UOn0sb610TOfWtMIVIwJOtX3+wCWkpGJeI2F6y2ji2i/+5UKfNwx63bt6gDjbVM m1BlVOyY2kDrwIGIcdc0FyhjjpTvRGEAY9vm4TP3fG3Oyz6dOuopjzfDYno3NrDrOKvo qA9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=hnii72+l; 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 x35-20020a056a0018a300b006875bd6d8d9si3996304pfh.169.2023.08.03.04.49.32; Thu, 03 Aug 2023 04:49:44 -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=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=hnii72+l; 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 S235048AbjHCJxm (ORCPT + 99 others); Thu, 3 Aug 2023 05:53:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234874AbjHCJxj (ORCPT ); Thu, 3 Aug 2023 05:53:39 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6E6C30F9 for ; Thu, 3 Aug 2023 02:53:37 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3fb4146e8deso8135265e9.0 for ; Thu, 03 Aug 2023 02:53:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1691056416; x=1691661216; 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=o/B0ToLExP+DiR9D97raY/1J2KSwUj5aVQTHcLopPW4=; b=hnii72+lRfd3fIj8r+WNkTKXqcHLxpE84fpR4zovZr6d4FRi/cSQ8Df191YVGBlsiC IPFvADsBsCMlNrZJpT+HaTU6fxodvjHbwmFhyc/GefTUYpyhqMwD6dfR9zehmjFhwrmw msdRDz9+zNRfViEUhW0t8UmAfACzDQ506jBsy7sNzGDXVMXQKpxQ5+AdQ2vDOvMnavNh Hjfoe/NerLWkfc4mvnQCJTDqil9W4pPKxArj8d+xZfnhMotyOtFHcJICur+WCDMpuvi9 i5TI2AB2rTgc0HsXoYOABVfqAd4JlCS6zbRPUuVrdVHBC2/06xza3GFHWBz36B4uSC1B lzZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691056416; x=1691661216; 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=o/B0ToLExP+DiR9D97raY/1J2KSwUj5aVQTHcLopPW4=; b=U8U6wU4Sr9ivuVopEBhy+YCqrf7gMd4jexJawhofBXH6eRxY1FZ9H/LvjJYF63OBBA 1L4MrZJPHkqDrHRIF0kvW833BNcmMsiGMIn4YnhvLf6b73dajJh45qkkIRjEVzTeodtk ZTy67avqqR7gf+l1A9kXsAC4hGk7ciALUXa2mQFrgRVbMu3J1JAH1Lej9t1ww/48o2ao uhJuyFNCnr86UZKTLobMxZkODj13tdyzpUmoFFEXvcvfI2WZIedanBKuXgfo5QvCfpN1 uF93JBeKdGd7BZNJ3PvUW6q03f7YyKxNspkkvNNREFucBmRPl2BtrPy9bmCW1dHBzNQs v2aw== X-Gm-Message-State: ABy/qLYNMvl/Bwwe0YujJ8iMll5Tn3GXpi/4IZy1Ppz/tJHkefCSvhFk LnFK4i+T4EHG2pmoENHYqvsqGA== X-Received: by 2002:a1c:7c0e:0:b0:3fe:2b69:fc6c with SMTP id x14-20020a1c7c0e000000b003fe2b69fc6cmr5373711wmc.39.1691056416186; Thu, 03 Aug 2023 02:53:36 -0700 (PDT) Received: from localhost ([2a01:e0a:55f:21e0:9e19:4376:dea6:dbfa]) by smtp.gmail.com with ESMTPSA id t12-20020a7bc3cc000000b003fbc30825fbsm3800361wmj.39.2023.08.03.02.53.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 02:53:35 -0700 (PDT) Date: Thu, 3 Aug 2023 11:53:35 +0200 From: Julien Stephan To: AngeloGioacchino Del Regno 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 Subject: Re: [PATCH v2 4/4] media: platform: mediatek: isp_30: add mediatek ISP3.0 camsv Message-ID: 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=us-ascii Content-Disposition: inline In-Reply-To: <0430ddab-6a6c-9fa3-95bd-05ce8ac5b94f@collabora.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > > + ..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