Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1968248rwd; Fri, 9 Jun 2023 05:03:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7bUb3MsqtuCe0SKKN37T622JyqA+mkDLGLD25+vVRopitkCgmUDkNTEws7ts4MKQyt8JRT X-Received: by 2002:a17:90b:4b51:b0:255:f113:48f4 with SMTP id mi17-20020a17090b4b5100b00255f11348f4mr684089pjb.24.1686312208437; Fri, 09 Jun 2023 05:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686312208; cv=none; d=google.com; s=arc-20160816; b=VItHK5UGS+FITadNSe+CxeGSlrzDm+mksFOC+TJJ7c8CUgrvu3fJ/DFsN/qd7y0/qJ uPVohH5BWqq49vUXt2P4wK8K2qxv+K1YXSYfv9e42YTjVu1yUK8oKMr9tGCT61wl9yKH Hg6hdE2VYN0wMvKJH9BpbMNk8Xo6pIy6hze9tI4mK7FG6TqLCuJDcpkUSXnOCls3iQCm daKpnes9BQyIP9eQUGYkwgvIHyHwJYlzyMTL7KXyivo30Gd8gxppSESeSKHghd+RtKzP +0LCgm8boJhvQtyPHdxWRGOcZllhOAzcr1JmY8ZXPwOhB1YcbMO3N+AwvdbdB3+s9+16 4uTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JB4CTunLjDtuj3/U1NJvDXOU9FbzRT6Z5F6MuzG7PXE=; b=zcrjrMI/7W3DpSAzPFKPTdY/t7XjLeSNUXhzbgmmiig60LJbaps1l4BhIM0rrZn7jz 40ZUTYN45arY82vHPhuVNRqAOecUPF6co5Vme8jetRjX35rnqAoXQ67okA2UoFkq99z3 lyatIZaVVkzz9OUPqToSyVysB01joXT6hQWjWJkprP5shqKvfCR2i1Gp9R/w0vxAnNGH Xo3qWdZ5g/70bLPreDjoATa1GH7F+rvloDT2emfgFfN56N5hrjM88KgLA2D8YqGwyVnQ qWnGQh1bIRFu7eM2JBRMOUvr+0lBbcXhnJecpgYEENu9TJA7jMGkqCMCBxG73JOuce8M 8/LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b="TlDx+q+/"; 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=NONE dis=NONE) header.from=raspberrypi.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lr8-20020a17090b4b8800b00246f8b06125si4532975pjb.108.2023.06.09.05.03.12; Fri, 09 Jun 2023 05:03:28 -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=@raspberrypi.com header.s=google header.b="TlDx+q+/"; 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=NONE dis=NONE) header.from=raspberrypi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238266AbjFILgx (ORCPT + 99 others); Fri, 9 Jun 2023 07:36:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230058AbjFILgw (ORCPT ); Fri, 9 Jun 2023 07:36:52 -0400 Received: from mail-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E77CE2D68 for ; Fri, 9 Jun 2023 04:36:50 -0700 (PDT) Received: by mail-ua1-x933.google.com with SMTP id a1e0cc1a2514c-789d36c830cso659610241.2 for ; Fri, 09 Jun 2023 04:36:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1686310610; x=1688902610; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JB4CTunLjDtuj3/U1NJvDXOU9FbzRT6Z5F6MuzG7PXE=; b=TlDx+q+/FFWVeNtExocYfHS+0B9wcTMdQ2jN5aJavlczQdazku17vR8yQ3el94ib6n pkVjeR3BLRqH825/LQBHc8xmbq3AiFwFCMC3talrIgBB/jUh7vIJchNO6SUEa6jgCqwB Iu9VoaFbWI4Bn4yG9u7t6kqctjxgRzOboi+jU9daMmMT416RcUcUmadXwqcL24w4Fxr1 PriaxXLvkSNX8n1VGTAU70bnPVFijLBbHSZmdR/dPErxZQd8HC67dwVpa96udobFpTk9 F6Ly2aSnwnQ3YDvXq8u/sw9DUtxAIyWh9iU5uSWId71T09A+Ov8Rn6Co8clptxViBuSx Vkeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686310610; x=1688902610; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JB4CTunLjDtuj3/U1NJvDXOU9FbzRT6Z5F6MuzG7PXE=; b=NLsoTT23+rFvk+etsqUURnazH7wu3SOM2NxEZv8RC7DpW4II8w+je4VPRkuRW3rR2k WsCpObWNw9U4jZ1OOLeyW/L5unQN0BCg9nXKE/l3uD0+g/RpJ1R/E+QlNIxpq6ZxAXSB SQTpzGPZ0kf0hOi0qHCbEIeY5gyXzJrxYMPGopd8XZoWU0cJa8tzbm6kMukrd6AzPO90 cktJ7bGtDPMgrLk55328C6v9x/osrbfhCWm8BkMYdWLR5/inWb9OOvBewaxTt/LfIC4W dn+7KLjs71YGh77mON0wvJKrHj9cFCWAR7b+M3Ny8DJKDsqH1f9TFt7/vM7JbzMoMaY9 LN8w== X-Gm-Message-State: AC+VfDwelZQt9ghpItug8chZpp6vclAH19Qw5IhXUReYSL0gfflNFL3H AQblEL+DhKZpTz0beSv9wQ0dDCql6UN6/R6gJXuF6w== X-Received: by 2002:a05:6102:34f9:b0:43b:458f:b078 with SMTP id bi25-20020a05610234f900b0043b458fb078mr760771vsb.30.1686310610005; Fri, 09 Jun 2023 04:36:50 -0700 (PDT) MIME-Version: 1.0 References: <20230608222810.574628-1-tomm.merciai@gmail.com> In-Reply-To: <20230608222810.574628-1-tomm.merciai@gmail.com> From: Dave Stevenson Date: Fri, 9 Jun 2023 12:36:33 +0100 Message-ID: Subject: Re: [PATCH] media: i2c: imx290: drop format param from imx290_ctrl_update To: Tommaso Merciai Cc: laurent.pinchart@ideasonboard.com, linuxfancy@googlegroups.com, jacopo.mondi@ideasonboard.com, Manivannan Sadhasivam , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,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 Hi Tommaso Thanks for the patch. On Thu, 8 Jun 2023 at 23:28, Tommaso Merciai wrote: > > The format param actually is not used in imx290_ctrl_update > function, let's drop this > > Signed-off-by: Tommaso Merciai Reviewed-by: Dave Stevenson You (or a maintainer in applying it) could add: Fixes: bc35f9a21a55 ("media: i2c: imx290: Fix the pixel rate at 148.5Mpix/s") > --- > drivers/media/i2c/imx290.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/media/i2c/imx290.c b/drivers/media/i2c/imx290.c > index 5ea25b7acc55..a84b581682a2 100644 > --- a/drivers/media/i2c/imx290.c > +++ b/drivers/media/i2c/imx290.c > @@ -902,7 +902,6 @@ static const char * const imx290_test_pattern_menu[] = { > }; > > static void imx290_ctrl_update(struct imx290 *imx290, > - const struct v4l2_mbus_framefmt *format, > const struct imx290_mode *mode) > { > unsigned int hblank_min = mode->hmax_min - mode->width; > @@ -1195,7 +1194,7 @@ static int imx290_set_fmt(struct v4l2_subdev *sd, > if (fmt->which == V4L2_SUBDEV_FORMAT_ACTIVE) { > imx290->current_mode = mode; > > - imx290_ctrl_update(imx290, &fmt->format, mode); > + imx290_ctrl_update(imx290, mode); > imx290_exposure_update(imx290, mode); > } > > @@ -1300,7 +1299,6 @@ static const struct media_entity_operations imx290_subdev_entity_ops = { > static int imx290_subdev_init(struct imx290 *imx290) > { > struct i2c_client *client = to_i2c_client(imx290->dev); > - const struct v4l2_mbus_framefmt *format; > struct v4l2_subdev_state *state; > int ret; > > @@ -1335,8 +1333,7 @@ static int imx290_subdev_init(struct imx290 *imx290) > } > > state = v4l2_subdev_lock_and_get_active_state(&imx290->sd); > - format = v4l2_subdev_get_pad_format(&imx290->sd, state, 0); > - imx290_ctrl_update(imx290, format, imx290->current_mode); > + imx290_ctrl_update(imx290, imx290->current_mode); > v4l2_subdev_unlock_state(state); > > return 0; > -- > 2.34.1 >