From nobody Thu Apr 2 18:47:40 2026 Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 5603638C2C4 for ; Tue, 3 Mar 2026 08:42:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772527384; cv=none; b=mrLPF4uaYzaSTOp3rEuUHOVZIX1lwg8Gt7RiD/MZvIUytFtnZi/jSAD/yiL0+7RGtjnhWdso0ZrlT5tbSZIp8Wd5a8NgwT/mDFUroDMmP2Gxmka68OuacKbKFL5isXCIpVeY9qV+vWflgAZMbKHUn+XTbzPQo+2x9Grqfk/5bFc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772527384; c=relaxed/simple; bh=bwwvWXJ41lySPW4U+2fiYxqsXRKDlDWopfEyohTTtfg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lIOJSW9x49M/oezs3DKsNSG3jR2Qj/sygQKcH9ED7l+ont+tgplBDx2DN12TyUPRJjNnee/I2WQqTEc6m8/uuBpttxI3W9/+SXdxjUuAq4pLKd3HqtBFk65Yme+L1hA0khvuJZ7RLJPJo9U1zGFp3aij9JRf9NvhUcC76FThZ+U= 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=P4dEd0h0; arc=none smtp.client-ip=209.85.208.170 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="P4dEd0h0" Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-389ebb0e885so102561851fa.1 for ; Tue, 03 Mar 2026 00:42:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772527377; x=1773132177; 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=dHYmVbbfQfaP2yj99KiW+/UkO3tcLecvvnP/w5d/X6U=; b=P4dEd0h0oSaTnk/BSYyDQNQjGzJpUww0XDD/jIJrHwdcamxsz1/i+Pwit7QcmllHzQ PlQyLE1Riik+MENxkEvTdNyy6bXa2XMmV2eyvnob7nMXraHFiZys//++m2ZOo+QeGW8V +e9396e1VOWeb8gT0kbOECmXJ/68HJTW9u/VNHixnl100jPuUN0PBQnPXWwFkbvtig0a Djxm2kzFlfNwGeGnpbHb+RBeIIqfh9KxOwQQHbrNcuQXYQoAJDHmMth3kx3kDLx5nrRs o4dwqpwgBhRcEkXnaE5H1ril5BfXLiAXfkxBBK6FhU0cZfR34jhPGRmvQgZBJvGbRBBG 7Fsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772527377; x=1773132177; 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=dHYmVbbfQfaP2yj99KiW+/UkO3tcLecvvnP/w5d/X6U=; b=BT3tE+u9QXpaxBNxODEUjftwqjB6287X9xx19SwuRIKgZOGLMW+EfkGUStqpL6f31b hkGSJRRiEJnxrSmkalpss9l6aXY8xlDJLa5fuP+l+LREjL/YwbXInJ1VeLwrPQZSn6ya SOEb8Mjby2XW1iLOcnP1vb8Ka0AIqFTjBPBh9J34g/pAnKLGEUcUx7BOO3Oh869/PA2/ VzXdM1wTyECvHjp0BfWHOXw7ShUoGrWozxnC4d2/lrGWxfRMYVeVfhgmCAu7HG3Mg1p4 7qAoZq4Df9exIw+G/ueixpErL1Mo8pAIySVltA0XIFjPcM2BbTmF1fq/adfO4d3zv1Gj RIsA== X-Gm-Message-State: AOJu0YzPFEIK0lKMpJ+Cgm73K1TVIpH1F6gv3Q/nHKFgSYp3p65bmcaf +fmfDIQ0fwE/6zW2VXsjA6QWrFrrtuaNkCQnGCXbBwDWDzPBOajw+LId X-Gm-Gg: ATEYQzxeYiqeQzN0gMqdjFU3/b9AlGtbbVhs4VKKpA4sxdbt8pH95Jrvb4Z5F9FYz1g WhscAKNh/fEo6kMC3oUjNEroGcJP8p0kebplkMpphydCfTo4YvFtZ3P6+cSGd+BDPvq8wl8meha U9/apszQncJBUSMuIBkEDvgE1if2ItZnqsRT2tke3jJ0xKvVQJR1X0e8ars/LXTRItXY/3l5FCo qo94WT9prKwMM+HGmjow9Dwh1CWxmqatiVNwYAz7DSyQfmIk2NlsHBj4V0f5q5BHekE5Anx4uNb p7B1JzrzjEBvqimgro3sn5KWUMwEL101MbtzCaRkYXdnnz1wgIqX6Fp6oN9M/r4LzLVRyxwuQIQ SG1+/jW35GQea/CgqgS9CN2r2W6hLsH3Dr3K0zvhSTK1JcE6juLx2UqZFQjaJNshTc5izkujbum SwlpJVQ0pchtBj X-Received: by 2002:a2e:a106:0:b0:389:fb7f:3e0c with SMTP id 38308e7fff4ca-389ff15f371mr102458851fa.21.1772527377130; Tue, 03 Mar 2026 00:42:57 -0800 (PST) Received: from xeon ([188.163.112.72]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-389f30227a9sm32599471fa.42.2026.03.03.00.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Mar 2026 00:42:56 -0800 (PST) From: Svyatoslav Ryhel To: Thierry Reding , 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 v7 05/15] gpu: host1x: convert MIPI to use operation function pointers Date: Tue, 3 Mar 2026 10:42:28 +0200 Message-ID: <20260303084239.15007-6-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260303084239.15007-1-clamor95@gmail.com> References: <20260303084239.15007-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" 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 ca= mera 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 | 592 +++++------------------- 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, 666 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 2c5aefe9621a..7f25c50621c9 100644 --- a/drivers/gpu/drm/tegra/dsi.c +++ b/drivers/gpu/drm/tegra/dsi.c @@ -14,6 +14,7 @@ #include #include #include +#include =20 #include