From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 70BB82E6CBB for ; Thu, 25 Sep 2025 15:17:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758813459; cv=none; b=AQZ5P+KIyWZ3B6wuIjuN3IpdbgWVbBoHYvAmxKQ7y47DinRd2F0+kAI3yP3C0GkI/1PPzgoFA/5zFjmoAlIBimBhW75m4kWnEnZbdurLYmcxBkPBAYKaYfE9n2JLmsckR7kIaPT60mbROfsKeAUZeq7cFK2tHh6D0JZ9unI2Bjg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758813459; c=relaxed/simple; bh=RyMqVUMoRxnLE2+LH/uDoKbsjsXYMu268PiHdfObUHs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nQjY6hSeUCk8ImGKpchYN8CqgSU5/cgQyXg75NQK5ve3SPBg5FzFed+Tan744KppqidoLG4UxZAuJx3GR4WTTBEeEhEkkBqgknQuhs8I3dHIWYx3Mxb/uLLEvoKeVrcdL9TBTAjazeONerMCSy/WVE9Wa3EorSbUP/vB41h1yno= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LV5T8NIk; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LV5T8NIk" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-57b8fc6097fso1344308e87.1 for ; Thu, 25 Sep 2025 08:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758813454; x=1759418254; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hswO6VHAbXRS9t5lyAgR5F2WC+ilzEfgsXiR8FyXf7w=; b=LV5T8NIkVevZs5a5PGuIdIdvYnfOFYkiZ4h/AN0UhOoCmDcpbiquC6ADTbljAnYxyD xp53rDpV9d4SdI22mL7UIV8kN3k3KOljaMFnRbecfSPipwLbX0IQ9yiHeTg5/z+rHYKU R0RejQEO0SHmzpkXgg4tu/VLxVaZvqBEW+yYjTUQUgSROw4AkoSO7jWVU0V/LCW3utT4 MjxrIVVEHiL3YJAmEBkmYfI8Nh2pOS14i/tClsAcIHeHAAItABagqteZOIEb/dN1+t0C yaiDOQHonJ5upSXl5vLq2qe7cC4BR/4SQRS9hJ+GZ0KkApF9UhtPiYs6s9WHdokzZQU4 fWMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758813454; x=1759418254; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hswO6VHAbXRS9t5lyAgR5F2WC+ilzEfgsXiR8FyXf7w=; b=TyFcyfVsoipnbLpJCSAntGln8JyPQIeUGA7CidPXMeFFQbZrhvH8wVwgo/JOUdXCBh g+Cepima+uviqnJ+07yKvkkM5gs/XY3jzoFiHuGb/tuRYGssloh1SavSA5jGnH5U1PHj 3KSSHwPKi2EmbrzFvM+67x0QXivsEJEYrsUZQKz3soD+gPbth8nGeMghyNPqOHBM7/7F DQu0MIXO3hKhEzG8SxkPnY1UMp2x9rHTnAds46F/nEXSAkWV5EglZis0SRS89K462cT9 dcy8Iw9sYVgAnTgzGxonSIJF0vES/57W8iqABX1hcdZqoYio1sp4ORiwNvW9aEW7rKwO fvRw== X-Forwarded-Encrypted: i=1; AJvYcCU7sZtLTn0Xe8fmKsoZ1ik2U/YQTcBOjPYy4CFwOM7UNDipHXQfRvWjTL0oSdh4pjwfvQHgYcgQhRud6Q==@vger.kernel.org X-Gm-Message-State: AOJu0Yz1NKSCPcbedGn/zuLjg7pCyXxEMEvf/FUL3+0EcmvNL5umDfeZ +E8NW90R+5dsEoB6YfGGxLvFkKnHgawezmgHL/oGggLVxNyFRV53Pzz9 X-Gm-Gg: ASbGnct/g8oaS3ZTDTis6I/OuGj0WDrlcT/DSFEbqCpDPs60/CZxa1UTBR7gMFyNaLT 47nQgIwIiYWo8rk46fg8fPpuJejUByUyM2uKvs/Tu/CeH8spio9AyyCvGPzJfDDy8GWkjTe9zFV rWXqyji0XpKLI+ItJeHgJN1WFBRy4sHiMbcuca85yxizpOA+rMl6RWFiTqfkXIi3zsKuCyfpqDY 5TIxM2F8eDnxuNEk3i/uFzfwZ4m26WBbtgA5OSf8B0x03e1ukODdBhpjgZXiJJEsngjNMXTMW5F 3vPvW/PzyDdUzXkrqfx9437EURjaU99FvRT6LQIYlO/rYB85AGcBTHzhamHBzwLuoR7E36AYKvB 2QPACyN6c6C9rRg== X-Google-Smtp-Source: AGHT+IG7KKCjilkRoVVQO6eRQmwua4ImxUfDI3+PmQybBw/b1Fvta80npFLTel5v2tEHntPHpbmfnw== X-Received: by 2002:a05:6512:1392:b0:573:68fd:7ad2 with SMTP id 2adb3069b0e04-582d25840c9mr1251932e87.35.1758813454230; Thu, 25 Sep 2025 08:17:34 -0700 (PDT) Received: from xeon.. ([188.163.112.70]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-58313430496sm870084e87.27.2025.09.25.08.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Sep 2025 08:17:33 -0700 (PDT) From: Svyatoslav Ryhel To: David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Prashant Gaikwad , Michael Turquette , Stephen Boyd , Mikko Perttunen , Linus Walleij , Mauro Carvalho Chehab , Greg Kroah-Hartman , Svyatoslav Ryhel , =?UTF-8?q?Jonas=20Schw=C3=B6bel?= , Dmitry Osipenko , Charan Pedumuru , Diogo Ivo , Aaron Kling , Arnd Bergmann Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH v3 13/22] staging: media: tegra-video: tegra20: set correct maximum width and height Date: Thu, 25 Sep 2025 18:16:39 +0300 Message-ID: <20250925151648.79510-14-clamor95@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250925151648.79510-1-clamor95@gmail.com> References: <20250925151648.79510-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Maximum width and height for Tegra20 and Tegra30 is determined by respective register field, rounded down to factor of 2, which is 8191U rounded down to 8190U. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Mikko Perttunen --- drivers/staging/media/tegra-video/tegra20.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/tegra-video/tegra20.c b/drivers/staging/media/tegra-video/tegra20.c index 7b8f8f810b35..3e2d746638b6 100644 --- a/drivers/staging/media/tegra-video/tegra20.c +++ b/drivers/staging/media/tegra-video/tegra20.c @@ -23,11 +23,10 @@ #define TEGRA_VI_SYNCPT_WAIT_TIMEOUT msecs_to_jiffies(200) -/* This are just good-sense numbers. The actual min/max is not documented. */ #define TEGRA20_MIN_WIDTH 32U +#define TEGRA20_MAX_WIDTH 8190U #define TEGRA20_MIN_HEIGHT 32U -#define TEGRA20_MAX_WIDTH 2048U -#define TEGRA20_MAX_HEIGHT 2048U +#define TEGRA20_MAX_HEIGHT 8190U /* -------------------------------------------------------------------------- * Registers -- 2.48.1