From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42F252F433F for ; Wed, 25 Jun 2025 16:46:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750869967; cv=none; b=InpNvraH9aGGnv8zw7FK4BJ2L241hDWkDSvDp2zOc0OYrYFH9bffaJG7LCjGqdzUqk7WGjKs1dZrQy3bOUMebdjCK6jYM/HV1BmBpM/QkTQjSSh9TL/sM3WDhv+I9vbofE5ERyJraeQep1FAAOrmrXmRUErbWctcIhAOerVpAUA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750869967; c=relaxed/simple; bh=ULYeCS04I3I36SsNgzIgs4VbxrC4O8nKPYlPqpeaQDA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QE1wzdS6S8uFTqm6L7HRVeGplkmn/48BXi8lLLh03u1J/XTqHtEdm+p07+p7V17mvdr0E+uSRtBGKmTUAHwUFfQLZF+MwX9ChB5VlKKcnY2XIT3hoX6Z2aETlw68nik34W9Xj37JvD8LooeaA09M15FyM7ju1+mQddzayolk8EQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=lpjhaatR; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="lpjhaatR" Received: by mail.gandi.net (Postfix) with ESMTPSA id 289BA4437E; Wed, 25 Jun 2025 16:46:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1750869964; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RapiHX1G4Bjd+Upr/H93BZHIVUclRV6sDrg9rC1DVIU=; b=lpjhaatR+1CcLH3pEw3HBbYEXu3V6HMrrhXD58kYoY0G7NM9QbsQXXlp1rwB8TbzyaBxvS Vu0eZ6Xje12AwVQzTCCn68D0HaoJHd/Gm1J3zIi1Yr1AhbZ7U0n4u3NmrHvFdp3mC3Ide2 b5pON6NQn+yAYDXmr8zaTZNWol4wCy92tg3V99ZN7No9mkQgpDfWQlL0JsZv2Mh9DtgIHD +07hLHlWTP8wvwozLwpiIOnYA2Exj0sN99kUGHf33S28225emdrzx6I+vzcZHjjyrezHn6 pyAHTl7ld+6y2bRv+RP9cZsinPEGwGxm0MWH/KGpILfjlC/BL8Uvy8zeXi6L3Q== From: Luca Ceresoli Date: Wed, 25 Jun 2025 18:45:19 +0200 Subject: [PATCH 15/32] drm: adp: mipi: convert to the .attach_new op Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250625-drm-dsi-host-no-device-ptr-v1-15-e36bc258a7c5@bootlin.com> References: <20250625-drm-dsi-host-no-device-ptr-v1-0-e36bc258a7c5@bootlin.com> In-Reply-To: <20250625-drm-dsi-host-no-device-ptr-v1-0-e36bc258a7c5@bootlin.com> To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Inki Dae , Jagan Teki , Marek Szyprowski , Jani Nikula , Dmitry Baryshkov Cc: Hui Pu , Thomas Petazzoni , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Luca Ceresoli X-Mailer: b4 0.14.2 X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgddvfedvkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdejnecuhfhrohhmpefnuhgtrgcuvegvrhgvshholhhiuceolhhutggrrdgtvghrvghsohhlihessghoohhtlhhinhdrtghomheqnecuggftrfgrthhtvghrnhepieeiuedvffetgfeuudelheeutefggfejieettdetteekueeuueeukeevvedvueevnecukfhppedvrgdtvdemieejtdemvddtvddtmegvrgdtudemsggvgedumeelhegvjeemfeegfeemledufegvnecuvehluhhsthgvrhfuihiivgepudefnecurfgrrhgrmhepihhnvghtpedvrgdtvdemieejtdemvddtvddtmegvrgdtudemsggvgedumeelhegvjeemfeegfeemledufegvpdhhvghloheplgduledvrdduieekrddujeekrdejhegnpdhmrghilhhfrhhomheplhhutggrrdgtvghrvghsohhlihessghoohhtlhhinhdrtghomhdpnhgspghrtghpthhtohepvddvpdhrtghpthhtohepjhhonhgrsheskhifihgsohhordhsvgdprhgtphhtthhopehthhhomhgrshdrphgvthgriiiiohhnihessghoohhtlhhinhdrtghomhdprhgtphhtthhopehlihhnuhigqdhsuhhngihisehlihhsthhsrdhlihhnuhigrdguvghvp dhrtghpthhtohepmhdrshiihihprhhofihskhhisehsrghmshhunhhgrdgtohhmpdhrtghpthhtoheprhhfohhssheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepmhgrrghrthgvnhdrlhgrnhhkhhhorhhstheslhhinhhugidrihhnthgvlhdrtghomhdprhgtphhtthhopehnvghilhdrrghrmhhsthhrohhngheslhhinhgrrhhordhorhhgpdhrtghpthhtohepjhgrnhhirdhnihhkuhhlrgeslhhinhhugidrihhnthgvlhdrtghomh X-GND-Sasl: luca.ceresoli@bootlin.com This op does not pass any pointer to the DSI device, so the DSI host driver cannot store it. Signed-off-by: Luca Ceresoli --- drivers/gpu/drm/adp/adp-mipi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/adp/adp-mipi.c b/drivers/gpu/drm/adp/adp-mipi.c index cba7d32150a98d78d07a25b1822dec6bf2f08f65..088b13ed0c89ce5e1fd3f4e57fa842fb2f31f257 100644 --- a/drivers/gpu/drm/adp/adp-mipi.c +++ b/drivers/gpu/drm/adp/adp-mipi.c @@ -171,7 +171,7 @@ static const struct component_ops adp_dsi_component_ops = { }; static int adp_dsi_host_attach(struct mipi_dsi_host *host, - struct mipi_dsi_device *dev) + const struct mipi_dsi_bus_fmt *bus_fmt) { struct adp_mipi_drv_private *adp = mipi_to_adp(host); struct drm_bridge *next; @@ -207,7 +207,7 @@ static int adp_dsi_host_detach(struct mipi_dsi_host *host, static const struct mipi_dsi_host_ops adp_dsi_host_ops = { .transfer = adp_dsi_host_transfer, - .attach = adp_dsi_host_attach, + .attach_new = adp_dsi_host_attach, .detach = adp_dsi_host_detach, }; -- 2.49.0