From patchwork Fri Dec 8 15:07:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 175850 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5516379vqy; Fri, 8 Dec 2023 07:08:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6aDMqSkUVJC8DYW7Tv7CSxh3QNRqWAtATb49+SFd0N1Jb24Fns8S/2eBh7k539f6k5yGI X-Received: by 2002:a05:6a20:9706:b0:187:4fd9:b9bc with SMTP id hr6-20020a056a20970600b001874fd9b9bcmr139012pzc.34.1702048115798; Fri, 08 Dec 2023 07:08:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702048115; cv=none; d=google.com; s=arc-20160816; b=yWiOwRcny8OcKnNk3dXmgtc/f3dW7XGpbFZnecFCQf1CT8GnLX+Ozwl0QbZUQVRvt8 bscC2JiO9AyPyApKbQy6UGKFJdiR9QdWGpIDLQHfLKzulMKDLoxi6jqbGUYnZJLju1Ka SCS3VW0T0faS+q+/b88GkYDRlMB1DyyULD8sOi16MBbljEvXHBlPxu191TcXbMJNNH8v YmfZtKJIWNPBbVQh5SmmI87z6inqPA620NU7618R35cLevpwJOOrqYWmemH84ShE+cOF NeP6x1stt758p90c+aaDIRhWYldoTcjt3WWgdZp9SWkX9HNV59wbjf4Eug0PObMwdSXH +TsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4T7ed2Ee4yZdpGZPSTxswX9DQ89SUBNNb7TyAoVhjnM=; fh=5WFlYumxFb4YMTIyFXnieMfGzo3YjRfO3j2f2Wqiw4A=; b=OQSkhMCXg8Y0+oqbTs97L7yDmTaXORBRHyrlGGxvibVAWYy3qT6XyI1s8DulMpgfab TG/0bVCR6elbU1l8D6S45c6SlvgG73T0CDeEbJurYKqY09D/LFn66zidf5bwg/FZIV6J bziEcar5jJESMw7UhtQCFsXfkiPIHYj6PrLJDFGygl3i0vVKpiktbqO8k/aplLFCg0Hy QS8K8AE2yKqsQx3xDfb+Iz5ED7baodre37oWhtU1M1ZqTe2rMUvo+aVFm67q1Q99CD0t zJcRwXd0RsL4zAB84l+LUduktJ7YcYnOSv5Bd0ILSt4wIM/VVewCf+0sovO91qtDjkk5 NbuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=tyGQgj8n; 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id b9-20020a056a000a8900b006ce91f9ff99si1713078pfl.42.2023.12.08.07.08.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 07:08:35 -0800 (PST) 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=tyGQgj8n; 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 77E398115469; Fri, 8 Dec 2023 07:08:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574178AbjLHPIS (ORCPT + 99 others); Fri, 8 Dec 2023 10:08:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574198AbjLHPIM (ORCPT ); Fri, 8 Dec 2023 10:08:12 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79812173F; Fri, 8 Dec 2023 07:08:18 -0800 (PST) Received: from umang.jain (unknown [103.251.226.108]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D14E8512; Fri, 8 Dec 2023 16:07:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1702048055; bh=zV/RIEdgSrvIS1kxne2Y4K//Y+viiimnpU5CN163GOE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tyGQgj8n4uQNiTfM7OVFjlS7zUuovDpEqfB4+o1u71fLQCzWKOOUIwkuDPH+J6R44 gKVwvBcNw0ENon/eNAvW4GENPU6dGvyz3dyCRRt/uEEAiTup1nnD2Ei3gIilXU48fP 7hlEsxB9xw4TrpZ8Hb6qt6SNt5GcLzilx8/kf/NA= From: Umang Jain To: devicetree@vger.kernel.org, linux-media@vger.kernel.org Cc: "Paul J . Murphy" , Daniele Alessandrelli , Sakari Ailus , Mauro Carvalho Chehab , Kieran Bingham , Umang Jain , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v3 6/8] media: i2c: imx335: Fix hblank min/max values Date: Fri, 8 Dec 2023 20:37:52 +0530 Message-ID: <20231208150756.124720-7-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231208150756.124720-1-umang.jain@ideasonboard.com> References: <20231208150756.124720-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 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]); Fri, 08 Dec 2023 07:08:31 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784726805381890664 X-GMAIL-MSGID: 1784726805381890664 From: Kieran Bingham 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. Reviewed-by: Umang Jain Signed-off-by: Kieran Bingham --- 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 a924b7222ca3..f353647a0d4e 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;