From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 6E31437F747 for ; Fri, 30 Jan 2026 12:50:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769777406; cv=none; b=N3ogK+VqN1PyvC4I3OmvXdKxg5KqnServqVcA3FtXTHbzIda6Np4c7u0hKsomyAOfhaxPOSM0/F3JtCwonarFVfPAEdSICLV0jNrqlCy5AKG8wwvenQuH6T5SE2DpSMg3ph/CX7aZT6jj9/YLhafJJIxCl47347ElQZB2pS4eOk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769777406; c=relaxed/simple; bh=oY85USD0gXJXDDNe9s6acMW/Ocv30mpMkYhRB0pufxk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NVRT/ayKIET65qCm6D7BjKbl5cT7DYSS6RhZzbt0v4iWaL90TDbxtqbB8darWUzLk5GaM+NaEsA96qhuNL5plGmTa3Fif5CGZ6e2ys5FnjlHp+WhorZ5IKQB8bS/BYYlWe/f93b1NQ8Lm3bHQOHJ1T2uX77Se3e/KXCApGPhB/4= 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=BguKJBlW; arc=none smtp.client-ip=209.85.221.54 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="BguKJBlW" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-42fbbc3df8fso1615201f8f.2 for ; Fri, 30 Jan 2026 04:50:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769777400; x=1770382200; 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=izZNO3eL3oHzsJUrKxHV6Tqswim5VPWikLvVKcA1Uj0=; b=BguKJBlWuUunwAk6T8VDW6MM1dOuW0fduoARNkDp9tbCT+B1RzGs466o5vAVRs4OlC i63LlhXBV0HwZug00xo+qIkp5BwSvvNSMCrAsACm+4+OeLSYjY/OgG+p8+pLNL7lnFjI 9J8XgV0qqyBDa3McbeREsLBz9SjdSoz21/nLuD7zgnLwVgQgBr6nkCHdziyVg1PYbisV SnrnS4fTtB+W8H+tZ+VTk26VzZ7b8UEBS8ZibrKLwmTIGGUnMJsiU8TudHxJAVQOR3/l +iEmKeBpwohp4QlgmXD4mkxWCS8bCKzQ+vN7g74UwZVxL+ESG5B+/71AmrnjFDN8ly/p CfUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769777400; x=1770382200; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=izZNO3eL3oHzsJUrKxHV6Tqswim5VPWikLvVKcA1Uj0=; b=O5A6AUtqTptmOUcigpdP+wPSc3qCktOWA59W6rs0LxfKRdJ3DQnQPLNKemavdUbvZO Wf06SWMyQjy0cUhN7Zk8u7WsxSYO8xlHBcgkM1FGVqkVEJRTqOSJytBRfOO7tfpkMm+2 lIZrg4gl1reSkOM4lYUuyQE6cvCW/JOEC7sqi0cd2jQ4VMPLXnz4UzuaSRZB8p1vTAbI 5toSwGsPGVsNW1rGFvjf4HrZtaAaLamCDi1nOoG5N7d+wna+st1p99FlX16aVwyu0Ccn akVS5QEXABEZcdBHIy6q+noVW5AaFUjdsB4fbMmferd2kg9A96uxF9xQ2tD8RT7u5ymb SJjQ== X-Forwarded-Encrypted: i=1; AJvYcCWTgVaI2+KOHrHVUig6uOSDz8d+sxE1D8pN8vy4vooxr5/fHWexb/2+js0V7UB+w5Ea1HE8wxv0CP7N3Q==@vger.kernel.org X-Gm-Message-State: AOJu0YypuydbO9kd7niF3jYJUko0nf/oou9h4x1urvFwvsLLblY5jW6U t/8dme0NXC6k6GzPusyjsHQLz2d+cM5bR+rshSwWUU8SHGSXDl2EoUIq X-Gm-Gg: AZuq6aI25bgyIGofRqt2PL09dK3XfAMseX5/RUWg/GU8kU4paZG7GdYgXOQxEX/l1+n O/tJ1DEKWk1UjgYBImVWYztXrj66TF0QGlTK+Hd5KSk64bH7ryfzmywWe60EHTPIkgKD2SkniRq EHSZPh1TkWyWkbr93vETGTwIz9Qw66atKp2McRYh11TpUdZQqiSvc742hbkFrhGZ+SoEAXmqTbL YFCIZ/l2p9GBmnWxjpjI6180CVYEluujIXvzodTIrK3vmdeFUENEod8+5lwMF82+WXfpPz473lv 8ZU1Ha9HoqljXzEF0rGp/AiCQ12zTq9LMitSYn+tFWd3bzb1dkT1YIWw9U5CJh+fJe+8H3JTcZJ R/Hpe8i8oRyp3DsJ1Yc9B0Ur6FekwguJmbPrAsW4kyg5q6AIMRPgVIyRpG1LJgh3lrh4k712Bpe aH X-Received: by 2002:a05:6000:2404:b0:430:fc63:8d3 with SMTP id ffacd0b85a97d-435f3aaa5bamr3926407f8f.30.1769777400075; Fri, 30 Jan 2026 04:50:00 -0800 (PST) Received: from xeon ([188.163.112.49]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435e10e4757sm22738783f8f.5.2026.01.30.04.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jan 2026 04:49:59 -0800 (PST) From: Svyatoslav Ryhel To: Thierry Reding , Mikko Perttunen , David Airlie , Simona Vetter , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans Verkuil , Svyatoslav Ryhel Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH v6 05/15] gpu: host1x: convert MIPI to use operation function pointers Date: Fri, 30 Jan 2026 14:49:22 +0200 Message-ID: <20260130124932.351328-6-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260130124932.351328-1-clamor95@gmail.com> References: <20260130124932.351328-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 Convert existing MIPI code to use operation function pointers, a necessary step for supporting Tegra20/Tegra30 SoCs. All common MIPI configuration that is SoC-independent remains in mipi.c, while all SoC-specific code is moved to tegra114-mipi.c (The naming matches the first SoC generation with a dedicated calibration block). Shared structures and function calls are placed into tegra-mipi-cal.h. Tested-by: Luca Ceresoli # tegra20, parallel camera Signed-off-by: Svyatoslav Ryhel Acked-by: Mikko Perttunen --- drivers/gpu/drm/tegra/dsi.c | 1 + drivers/gpu/host1x/Makefile | 1 + drivers/gpu/host1x/mipi.c | 525 +++--------------------- drivers/gpu/host1x/tegra114-mipi.c | 483 ++++++++++++++++++++++ drivers/staging/media/tegra-video/csi.c | 1 + include/linux/host1x.h | 10 - include/linux/tegra-mipi-cal.h | 57 +++ 7 files changed, 599 insertions(+), 479 deletions(-) create mode 100644 drivers/gpu/host1x/tegra114-mipi.c create mode 100644 include/linux/tegra-mipi-cal.h diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c index 8ee96b59fdbc..2735aa351d8b 100644 --- a/drivers/gpu/drm/tegra/dsi.c +++ b/drivers/gpu/drm/tegra/dsi.c @@ -14,6 +14,7 @@ #include #include #include +#include #include