From nobody Thu Dec 18 08:52:40 2025 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.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 DFBA734D912 for ; Wed, 22 Oct 2025 14:21:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761142908; cv=none; b=saxVcWi3f7euhF/1ifUjngTEMM9B3JJl8StcyOWi542M7tKC0EBzbT/Lz49i5kvOpVTZxFvi4J6hwXwATO6+uW2XQQA3S0elivEz1djQJ7zWFvMSYuhKMYXlfx7cOx6s0h3bj3ayjrFA8Yih5OkixOkv9hB5aqaAERv/7u2hRTI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761142908; c=relaxed/simple; bh=7DUsOFoVCFhnISr6T30XN5C30PUazq1SDzgaHc4SD18=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=F9WMd2CyspzB+ZkdZpOMJ9+ntV6aNtDeDCjM1Yp8B1CbFe1Qj0iRtacXnhefMGyc0szAjsnvMhHz5kSLdMqEkw6f3KKKUFRY9Ivc9diT8wO6y0469goMdEix6eyDo1YfxGmvtUUkioKpCp4h/A07jE49+myui8Pqg3+H9o3yf7Q= 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=JF88d6aA; arc=none smtp.client-ip=209.85.128.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="JF88d6aA" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4711825a02bso46394455e9.2 for ; Wed, 22 Oct 2025 07:21:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761142899; x=1761747699; 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=HrGwv1CVN38vvDG/Y9Rp7ol0PB58C3nZK56qBv8o/FI=; b=JF88d6aAOTdzsiJnET3PmBt2vsMuyZ/NooHo1IEKzi7Qkr66C3D1nYhiu147bCtYAJ PKYWTZ1Ok58RaF9T7kN+fF0srZIG5sBwmPtBF/byr7WArGeLFXFs7pom/Fz6uqxajjem 0rJVieT5+PkGpoQHUSg5qvO1Nxn4OQa9WiyKODF1G8VodknB5n2NrARdf2BhPJvJM+Ix QR6SupmpgB0GQFbYnxhQxOgD6GbHSk5cwZc02DX8FT7BDOd6H0QOWKPG/JQ7E3K7WkDT qZqaJAjGhgkEvh5mjAvDRCDnZE/J7vSXpTKlMe7ZQFpA1Wd+NanQVHrVlMdO3ICMxpL5 oV6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761142899; x=1761747699; 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=HrGwv1CVN38vvDG/Y9Rp7ol0PB58C3nZK56qBv8o/FI=; b=LWKUVdS907MaawRVGIUhnNuMKP17vAIxqfnFyklDlWDXqhYXwiDY51Djz9E+avQKjL HcUiuG+aP/WRIFnFYzJCiYSogOwg5Yr79UfcXSHbLXpcqII+ZPUMO0de7WdAJnmx++jz uZIEJ4mKSOxksPWuEqZUu0bKdzIcIKPMUVPuRWnNky47EBtAv8xwPHsoJlWEn6nL3D0M oaolJchbYaPADgovrzl7an3x9Nz97xW+cVnpnbEEZ4Od9iAwz7NNN0g+Iho1GjouVygy cujLZrN174GWBbXe7tAflMVDgX9RvHaNm1O5MVMGXaG/3La0KsIL1LiAFte52kW+YAeX mPoA== X-Forwarded-Encrypted: i=1; AJvYcCVMpuoKVNK3SezL+50Nd0VBMKeLn+05zjpnmU7eYFeA1e7HGEQp7ZYnBsTQykghn6cQ4GI8DOFbuVxFrXY=@vger.kernel.org X-Gm-Message-State: AOJu0Yz8uEo0RSE0reJa5jkJDzZP1KdqSZI+CwLkpt079c8UBQYGwNvi 15HEoRjeAQZbXOk1tA4nAMrLeyr8eHDxiAFOxEBrralwUPjGnMmzkCP8 X-Gm-Gg: ASbGncsaOiiVBh00yvP1pZhxKGsNMHcpw/a6MIf4mLd9StEoOnK9enLvPDPoQrAmBAV ZvNk6yyf1/aB9k/0r/wTyFdCtIi6jQ0G4QrEfPaHyAYaF8OvbqSwo/d/Lo05FyMsf1WYomZ2qK8 D4kpmO7Uxy4BNxF4xgB6PZSUu613XNyC2u2+6l0SbolTPh8OeTahwB0UvBIPVgBSlb6PNLYrPTX 2oGYoGnbYR6x9W84XDicl4uAOSRkPnPBLIzZxzzKhwfErQ9i0OojJzKbokY5v4zoCpCS2s7+uuP EB5Ucm2urGEki97ducl8GfLfLfTMjDNZPgpgTnF+V6+74WsqOpKuTgplfDEtYzg7mzDmEuDM87Q mOoOAYr1JfL3NXjGehsFKhUtBfy4mUIn6f9L0kFU2Zm876ATQUAHeAJF1mKQnznsUL5KdfSfUCu yCLQ== X-Google-Smtp-Source: AGHT+IHpqvHOi5DS7ZRtt0ui2sF/8epf8OOXmHyl8ipQfjW1K3ZzLwnjTLVcaO31cwis54j1XfqyvA== X-Received: by 2002:a05:600c:4fc1:b0:471:b5d:2db7 with SMTP id 5b1f17b1804b1-4711790697amr135554505e9.24.1761142899118; Wed, 22 Oct 2025 07:21:39 -0700 (PDT) Received: from xeon.. ([188.163.112.61]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-427ea5b3d4csm24803518f8f.19.2025.10.22.07.21.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Oct 2025 07:21:38 -0700 (PDT) From: Svyatoslav Ryhel To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Prashant Gaikwad , Michael Turquette , Stephen Boyd , Mikko Perttunen , 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-staging@lists.linux.dev Subject: [PATCH v5 09/23] gpu: host1x: convert MIPI to use operation function pointers Date: Wed, 22 Oct 2025 17:20:37 +0300 Message-ID: <20251022142051.70400-10-clamor95@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20251022142051.70400-1-clamor95@gmail.com> References: <20251022142051.70400-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. 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 b2046f6ea515..502f0cd0ce53 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