From nobody Thu Oct 2 02:13:22 2025 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 A6A5A2E6CBF for ; Thu, 25 Sep 2025 15:17:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758813459; cv=none; b=OZpC2yEO1JZw91x4yQzpzadj6SSGIhtwiRJl97fD77hwd78Qm8aMpMQqd1LC9fspm7+mpCuwCJ3w2CI+iw0OCBGx7+fL5QWHNed3uEFsLTnP97OgeiSH3GSMeK9cYXzeISWQ8B+oq23pIjBhjzZcDlFrc3XxTgI5wKzzwhJz8Kg= 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.50 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-f50.google.com with SMTP id 2adb3069b0e04-57b8fc6097fso1344305e87.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=ddpzX3n6OF6fRlowY98pqfi/RObKDBMrx309dzIDgktkWP+CxZfwnmlVkUCJQupPCi 29qdkAg6bg2ql/P24f0hfFM4QeuFPaGONTn4pKT5KDsogK2n5o4OL/9togPcxxZ9JhME GvfKoHd38LKSWdylCmjuPSVZ7HOI7OIBjxu6VHGnU6fe68Atx9haxQNeERo7gd3JvsYe /qnjP0hQ2g00RBcTj6tpxMi3ZmitZv9zTW5dI1jUjkfNJs0RuIWNAoQyUbJ1qGJiRtg+ 7urBA1CTg3CHWnjCzMF9vNSjUjjo+1rpQKM1d5QR8RLfH4b8ZA987Jtrxtnk5Qfeu1n8 eYlg== X-Forwarded-Encrypted: i=1; AJvYcCURZK9y4fgaRUxOGjLlHBPzNZ6aATwfp+eGa+KJcwBPoQF6gVqldbcnGuIYMvR7zbQP5+culYGanKtABcQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyG/U0RJNe5PvL4sbRJVCjwHLBnugX0lFaCFLzFjtdIl8+yT3Je R6P7Beqh6ae0Yjplbxz9H0UO7SHNZivxVEGMOUJnp/Y2FDDmahQcaPbL X-Gm-Gg: ASbGncvMVyHNcw9xKqvmHzvxkmSflVLQObt/RzYosGaMc4OcGugA5aws6+Gr7FcCmXV iJkoX0RVg/5/gucYNrKoK9vw6SlsR+Anx+vqrpgGm5Js5U2dlba+cruHcFEuLx1/OFn1+4mwWcf 6Ul6CbXlDNVglkl6PW3n5zvhHHjrk3cFzNJgS3Dki7GdPbprfs9y9s5B+kZcnTBRJa5V5Clx+Cn SF/zXwicD4UoMEA6nLK/piXAaMUqTyII0X7ETJ7GrJJztYmPaXLbTEEPOG7djbDefeMVwRBnaFr rbC/34sTA4dF4njrgPlQLqjxW0l6AdTP4E/xeeYp1kp4WE5HHQxfXGrw4u13c7AHpQJR7qHJ1eC pMH2VkgAZhugS8Q== 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 @@ =20 #define TEGRA_VI_SYNCPT_WAIT_TIMEOUT msecs_to_jiffies(200) =20 -/* 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 =20 /* -----------------------------------------------------------------------= --- * Registers --=20 2.48.1