Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp98786lqh; Wed, 27 Mar 2024 16:24:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/k8C/IVf/3aYnL7NJG0Gc5OUySder8zKfD4jJ062I/w1wZf1hA9FRHj9OpcPVezF42Nc60uG+F/3eios13DUXPymyXIzgGUmwUcx/ZQ== X-Google-Smtp-Source: AGHT+IHQ8djIYCUWWkACcOWtWe73U1/uIclBMsZfRo6vCcyoSTtpPdxs/5fuxUY8NooEb+6++1uP X-Received: by 2002:a17:906:c00a:b0:a45:c931:5703 with SMTP id e10-20020a170906c00a00b00a45c9315703mr479226ejz.70.1711581889892; Wed, 27 Mar 2024 16:24:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711581889; cv=pass; d=google.com; s=arc-20160816; b=070TvE0hMUppaSAayMoNxm7wfBw6vMyFUz1px9UJhQwzID3bs7hTtmI0vBocz0wHio xCUBeUVbpdZ+hnSTPY6kNnkgzObUvBtcNlsf9KWL7skGJOpPIb2foLj7MbrODWYFRjT1 nYpeMXOet6nsHznjnnUMkQh1X5lc4dX4bCEQO5Mr9uf3IiElpZ3cqERQxCmIvAQ+E959 2PEP0wiF+mIm/h+B3xzE5qJbeSolKM23QoLc40BNrs7E+HUtqGpNnx/b5/o3MdhJc8jP 15QhPjCIz3yP5tqU+5DJEUumAbJf1kqBSt+axpzGyoWxJiqQ+LAzwENhJAbU2NzXn3cA vGsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=8VAPtDzgGszeDreMGf3K+a0lokdNPZGj6/qmTj7fPpc=; fh=zsnVypYi1jV7NeC/3VcVRjyPykaaos/xhW4+C3vOkss=; b=P08XCM11RA8XRwHl3Rfov5gLmCa4fmi8bKQXnQijL3Qtpc8D32g8Q1Y7R/xcgV4c+8 6S0aOinRmeszMEB0L4nKHMQJKY/2TWJlZlaB8nDHTD4NU88ZuTOI1EhF+LWCGPz4IY4O 6CgeS5sXQ5yV8ftyqhLz6fdaE7jKZIudQkOzzXHvfrhadsu9rRn6c4dJZpfs3nUPuhq3 RtjJoapxcIZWl9Bz43sjj9B3TWJpC/pr1CykSokrykiREBMuZE9Mt1FIuEk/LIanbVAs +HHg8wRAQc7y/2+aqZoL0f6udDt21xrPeVtpwbG1JVQ84bCltIPpKkDYikIMGZ3sLXkO aB4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=BGA5xBr7; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-122174-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122174-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gz17-20020a170906f2d100b00a474898cd9esi59109ejb.896.2024.03.27.16.24.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 16:24:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122174-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=BGA5xBr7; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-122174-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122174-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6EAC51F2E05C for ; Wed, 27 Mar 2024 23:24:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48231156640; Wed, 27 Mar 2024 23:23:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=luigi311.com header.i=@luigi311.com header.b="BGA5xBr7" Received: from mail-108-mta166.mxroute.com (mail-108-mta166.mxroute.com [136.175.108.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AAC5A15539F for ; Wed, 27 Mar 2024 23:23:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.166 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711581802; cv=none; b=aJvWFhVjw092hecxgRqKFzeQEzzQscBdQ5lYH0fze8G9oS3/MqREOLJJ0m2kH5e3HWk654gdUwnlfetHMpV2Ri9fXGz20F1/fpTyuyjsnVK28/sQ7ltokX6ASe4zqmTrwBBJqX0E3qNrPIAd4iCjG0fcmxIdqQngXNfEawCcY6I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711581802; c=relaxed/simple; bh=cA+a4yuqQVkS/8K8gNj/TEvJEub7ZleI9BN5eH1wpf4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GAXJVWeir+OM7xUKX5Fez/PCqZtar9YTKVe5CgZyb8sxqW85GKK0JcVTdcI76WwtZYAVJFSpeYB2+Hugn3PvFci+MEEK+DMukRmFkeJwkEVASNytgT7M2Tli0sGAWl/0rvXhbInbf7eSarogPZjP+kA/fymlRiEfHBn4ANsP4Qs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=luigi311.com; spf=pass smtp.mailfrom=luigi311.com; dkim=pass (2048-bit key) header.d=luigi311.com header.i=@luigi311.com header.b=BGA5xBr7; arc=none smtp.client-ip=136.175.108.166 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=luigi311.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=luigi311.com Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta166.mxroute.com (ZoneMTA) with ESMTPSA id 18e823480f30003bea.00f for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 27 Mar 2024 23:17:42 +0000 X-Zone-Loop: c62c6f4eca7f154990d8251e3ea88f5e9a155d942377 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=luigi311.com; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8VAPtDzgGszeDreMGf3K+a0lokdNPZGj6/qmTj7fPpc=; b=BGA5xBr7spbPlohctMY2ikBX6L nYRFBgh7yjBoSbZiHv/G47ylGySSOIMFla4COvMGL6MJSHaJjUCx/1m/qJ+eLh540Mlgv/4qpKGMv 6z4Cq3laUoNYklfCNQ2cbpOj0nH45RMB6baefLdk8hNbuJ+5lZX4aKiaQii8/9cH79Wr5xV/Cz6n4 PbzyeUZJRIFxra7CSRWmCdKMWWGJYqxBkAVLZunU0Y7F25JV4MgjYs2PoWkmBNN1EguIH1cKlaR88 5SfpUGzk9WlkzU/oeZXh+zr4xJIzglaQmvL1YUBZC08KCt+JISN+4Ml0hHKZDcEUo1Y4CnKbdzXGC oAT7MTKw==; From: git@luigi311.com To: linux-media@vger.kernel.org Cc: dave.stevenson@raspberrypi.com, jacopo.mondi@ideasonboard.com, mchehab@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, sakari.ailus@linux.intel.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 13/23] media: i2c: imx258: Correct max FRM_LENGTH_LINES value Date: Wed, 27 Mar 2024 17:16:59 -0600 Message-ID: <20240327231710.53188-14-git@luigi311.com> In-Reply-To: <20240327231710.53188-1-git@luigi311.com> References: <20240327231710.53188-1-git@luigi311.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: personal@luigi311.com From: Dave Stevenson The data sheet states that the maximum value for registers 0x0340/0x0341 FRM_LENGTH_LINES is 65525(decimal), not the 0xFFFF defined in this driver. Correct this limit. Signed-off-by: Dave Stevenson Reviewed-by: Jacopo Mondi --- drivers/media/i2c/imx258.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/imx258.c b/drivers/media/i2c/imx258.c index 85c2f1ccaea1..c2c5e819ddc0 100644 --- a/drivers/media/i2c/imx258.c +++ b/drivers/media/i2c/imx258.c @@ -28,7 +28,7 @@ #define IMX258_VTS_30FPS 0x0c50 #define IMX258_VTS_30FPS_2K 0x0638 #define IMX258_VTS_30FPS_VGA 0x034c -#define IMX258_VTS_MAX 0xffff +#define IMX258_VTS_MAX 65525 #define IMX258_REG_VTS 0x0340 -- 2.42.0