Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2279970rdb; Mon, 9 Oct 2023 21:16:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGcKy9sziIFiafPni0/x9Nqq6ye+/NtHJ6hUvk/d5dRZtSmLGgsUtep8rRwOUJvgwMVqkf5 X-Received: by 2002:a9d:4f0a:0:b0:6c4:cda6:ff31 with SMTP id d10-20020a9d4f0a000000b006c4cda6ff31mr16681964otl.15.1696911380075; Mon, 09 Oct 2023 21:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696911380; cv=none; d=google.com; s=arc-20160816; b=tTqxrHz+Vxatbvl+khf2jhIwR5xy3MJpJfIsyWRM+oyUMLpZGmm8sUbjxrfk4hCxN6 HTKOvkxlQf+3ZoFKu45EzXQwyj7/hY4apNteDkU+RU86KBTSdqGgdGdCfLAmbZKM8qA4 CPCEFY0nSTnup5uy4TzBa2FjTzy3J/Fy0bcVBsaB2yyoaQfEXZMfC/9VVGz3NXBrPfyv VI29eNqmw+LFnger7uEY/E4KWTNcawQ0O5BpQFDmpjYLD9i0x1nzFKF1c56sZfb2hdWW kY+NKndhSJRm3xu0cwd7ImpupCGqTzA+2HhKSo78p4pPJnJn6i4lf9DD9oeMZVSeob1B fpWw== 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=D7t1YFIfVH/tyi8pJQfM/zU3LblG5dHkExWzSRtWv/8=; fh=jd+4XK9ugUEwjeHp2iXai6AYq+z2mVOqKlO0jMc+tpE=; b=QV+/liLpkYAoLtAXL42YG6r0KHSe9GxCSQmV/KFTsWZUbwh6LQ4MN0hacSBBxaB/TX 6z3AMQx8ANSiFNoMNvCMHz8IfNEowBeDCksSkz5XNLE5zoUWDPxQosPR4DCsv/snUfcg hFRQLg02Q5xRwM0su1dCR/1XClWxV075IwNATDREnd0X9Bu1gDbkv/xbWEsi8fz4iVxd GVgNlzPlcgBJ6GTUfYhYoOAU7JAEDdNf0M/KdAE/esh7O1Nuin1vXD6Kt7wmueutadG9 tujxV2vWt8j7UO03/CGVvo1TDfFHEAqCD4TgjLjwc9cjR/fqh6oKHhvayIxQwFXWh2FD jRwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=wBHfOY2G; 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 Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id x184-20020a6386c1000000b00574021e070fsi10759181pgd.106.2023.10.09.21.16.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 21:16:20 -0700 (PDT) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=wBHfOY2G; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4042F8027A07; Mon, 9 Oct 2023 21:16:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377125AbjJJEQE (ORCPT + 99 others); Tue, 10 Oct 2023 00:16:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbjJJEQD (ORCPT ); Tue, 10 Oct 2023 00:16:03 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 627BE92; Mon, 9 Oct 2023 21:16:01 -0700 (PDT) Received: from [IPV6:2405:201:2033:3002:3848:5d20:59c9:c87c] (unknown [IPv6:2405:201:2033:3002:3848:5d20:59c9:c87c]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B01E43D9; Tue, 10 Oct 2023 06:15:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1696911358; bh=zz6u7A5E/2PEqJdG/2MAXri/p5u+VkgPCjW7Gd4AjXw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=wBHfOY2GcV7ROlbPVNFwk7zhf+EvuPURm33g+6sQ3J46qbNa3uENsKVDeRpio8Vti HPAj1zxb6ip5nDCYuVyAgOb7wIJNVpfmmVT+0K1AENtdY+zPPG1d5j9Q1CwYrbjCsn 8KBtZCSMBifFFIUm6WuqDVQfKS9E/1ka0tBjBRDA= Message-ID: <60a729ac-541a-6e92-34f4-411f78d010ec@ideasonboard.com> Date: Tue, 10 Oct 2023 09:45:51 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 4/5] media: i2c: imx335: Fix hblank min/max values Content-Language: en-US To: Kieran Bingham , linux-media@vger.kernel.org, devicetree@vger.kernel.org Cc: "Paul J. Murphy" , Daniele Alessandrelli , Sakari Ailus , Mauro Carvalho Chehab , open list References: <20231010005126.3425444-1-kieran.bingham@ideasonboard.com> <20231010005126.3425444-5-kieran.bingham@ideasonboard.com> From: Umang Jain In-Reply-To: <20231010005126.3425444-5-kieran.bingham@ideasonboard.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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]); Mon, 09 Oct 2023 21:16:17 -0700 (PDT) Hi Kieran On 10/10/23 6:21 AM, Kieran Bingham wrote: > The V4L2_CID_HBLANK control is marked as readonly and can only be a > single value. > > Set the minimum and maximum value to match the mode value. > > Signed-off-by: Kieran Bingham Reviewed-by: Umang Jain > --- > drivers/media/i2c/imx335.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/media/i2c/imx335.c b/drivers/media/i2c/imx335.c > index 026777eb362e..1a34b2a43718 100644 > --- a/drivers/media/i2c/imx335.c > +++ b/drivers/media/i2c/imx335.c > @@ -1043,8 +1043,8 @@ static int imx335_init_controls(struct imx335 *imx335) > imx335->hblank_ctrl = v4l2_ctrl_new_std(ctrl_hdlr, > &imx335_ctrl_ops, > V4L2_CID_HBLANK, > - IMX335_REG_MIN, > - IMX335_REG_MAX, > + mode->hblank, > + mode->hblank, > 1, mode->hblank); > if (imx335->hblank_ctrl) > imx335->hblank_ctrl->flags |= V4L2_CTRL_FLAG_READ_ONLY;