From nobody Wed Oct 8 19:20:32 2025 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 1BC162FD87D for ; Wed, 25 Jun 2025 16:46:31 +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=1750869993; cv=none; b=RO2h+GXFg98JQI2MHJk2IWvphODnEfU3iUjP550aEK4MP/JJI2xNS/vfbgcvlioUkmUPlvGR2fbmOT883003mqxCvHuNnxM5/AEZTYXZjrYPYur8x2cCH4olhRU3zGe4bpRc4HL6L3mH1uEh/ooSecoAKcmWmVff5iyppTe9+bw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750869993; c=relaxed/simple; bh=KFbpQC0mNw0uLBx6k3A83cPY4Wfvde9DzQS09c3sEzc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BhVxx0q0AVHBOBLwoELR3pTfFx7kbJj5xJshb5m2u8Mw9lKnCKWsZ0YrNpxn5AtziKgxLWTY+Hfr/YY/C2nCVlOor9CXWJgfN8HljsEElAMpnJj0Q7csMkEx6/5ibGxtrdi8BWotvv5RHJIRLY01QEChvMr1oj12X9hcBPNi884= 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=QDi7yTgx; 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="QDi7yTgx" Received: by mail.gandi.net (Postfix) with ESMTPSA id 1470344386; Wed, 25 Jun 2025 16:46:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1750869990; 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=5cWt4DQ5z/OAZZXRdVZQGA3iOK8m5DLnXiWLrcVyqfk=; b=QDi7yTgx9bfCMGT1OziOEhW2QV3zPR3QIERv1kIwcdYQzUrwGh1ojuRb+9RU3y+EZagkT8 ga+Aot/Nt3lTh3E1GVuqNoCZ2EnWzhSZbdWQc81yGupwENqZEXUILO4g95d1zgThdI2wML RzK+R5bCj3N8TEy7bxsQpm7FsBCyaGTRruMhsf6XT5sytqUj6wfeea45zSBbbFknQ/p8XA 0so0RW6xyHjQS6Ih9SHFnwKoetXm0O1S7xq68ek3gALBVgwejXSsnMt54bDv33ULGQixj5 FJUhUJ3rWmW844thWEsR9ubTBNnl0GIv6pgZ8vnCYyjERZTCn2xEoPzG4/uXUg== From: Luca Ceresoli Date: Wed, 25 Jun 2025 18:45:35 +0200 Subject: [PATCH 31/32] drm/mcde: use the DSI host pointer in mcde_dsi_irq 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: quoted-printable Message-Id: <20250625-drm-dsi-host-no-device-ptr-v1-31-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: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgddvfedvkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdejnecuhfhrohhmpefnuhgtrgcuvegvrhgvshholhhiuceolhhutggrrdgtvghrvghsohhlihessghoohhtlhhinhdrtghomheqnecuggftrfgrthhtvghrnhepieeiuedvffetgfeuudelheeutefggfejieettdetteekueeuueeukeevvedvueevnecukfhppedvrgdtvdemieejtdemvddtvddtmegvrgdtudemsggvgedumeelhegvjeemfeegfeemledufegvnecuvehluhhsthgvrhfuihiivgepvdeknecurfgrrhgrmhepihhnvghtpedvrgdtvdemieejtdemvddtvddtmegvrgdtudemsggvgedumeelhegvjeemfeegfeemledufegvpdhhvghloheplgduledvrdduieekrddujeekrdejhegnpdhmrghilhhfrhhomheplhhutggrrdgtvghrvghsohhlihessghoohhtlhhinhdrtghomhdpnhgspghrtghpthhtohepvddvpdhrtghpthhtohepjhhonhgrsheskhifihgsohhordhsvgdprhgtphhtthhopehthhhomhgrshdrphgvthgriiiiohhnihessghoohhtlhhinhdrtghomhdprhgtphhtthhopehlihhnuhigqdhsuhhngihisehlihhsthhsrdhlihhnuhigrdguvghvp dhrtghpthhtohepmhdrshiihihprhhofihskhhisehsrghmshhunhhgrdgtohhmpdhrtghpthhtoheprhhfohhssheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepmhgrrghrthgvnhdrlhgrnhhkhhhorhhstheslhhinhhugidrihhnthgvlhdrtghomhdprhgtphhtthhopehnvghilhdrrghrmhhsthhrohhngheslhhinhgrrhhordhorhhgpdhrtghpthhtohepjhgrnhhirdhnihhkuhhlrgeslhhinhhugidrihhnthgvlhdrtghomh X-GND-Sasl: luca.ceresoli@bootlin.com mcde_dsi_irq() takes a struct mipi_dsi_device which it uses solely to get the struct mipi_dsi_host pointer. We want to get rid of mipi_dsi_device pointers in host drivers, so use directly the struct dsi_host pointer which is now stored in struct mcde. Signed-off-by: Luca Ceresoli --- drivers/gpu/drm/mcde/mcde_display.c | 2 +- drivers/gpu/drm/mcde/mcde_drm.h | 2 +- drivers/gpu/drm/mcde/mcde_dsi.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/mcde/mcde_display.c b/drivers/gpu/drm/mcde/mcd= e_display.c index 18b8ed1456d436dc8e7b7778461d76a251509ecf..70f8d92ed23a192f4cdb51c7f68= b9973147b2113 100644 --- a/drivers/gpu/drm/mcde/mcde_display.c +++ b/drivers/gpu/drm/mcde/mcde_display.c @@ -89,7 +89,7 @@ void mcde_display_irq(struct mcde *mcde) * * TODO: Currently only one DSI link is supported. */ - if (!mcde->dpi_output && mcde_dsi_irq(mcde->mdsi)) { + if (!mcde->dpi_output && mcde_dsi_irq(mcde->dsi_host)) { u32 val; =20 /* diff --git a/drivers/gpu/drm/mcde/mcde_drm.h b/drivers/gpu/drm/mcde/mcde_dr= m.h index 4ae32e92d7f36707dfd91adb2cc9c76ec32a677e..23f9a6473d8ac0f91b3e3665f22= e52ef8e696a17 100644 --- a/drivers/gpu/drm/mcde/mcde_drm.h +++ b/drivers/gpu/drm/mcde/mcde_drm.h @@ -104,7 +104,7 @@ static inline bool mcde_flow_is_video(struct mcde *mcde) mcde->flow_mode =3D=3D MCDE_VIDEO_FORMATTER_FLOW); } =20 -bool mcde_dsi_irq(struct mipi_dsi_device *mdsi); +bool mcde_dsi_irq(struct mipi_dsi_host *host); void mcde_dsi_te_request(struct mcde *mcde); void mcde_dsi_enable(struct drm_bridge *bridge); void mcde_dsi_disable(struct drm_bridge *bridge); diff --git a/drivers/gpu/drm/mcde/mcde_dsi.c b/drivers/gpu/drm/mcde/mcde_ds= i.c index 2df2fdf45bd7d6259c631f1c402191db49336cd0..b97b9541b6277ad3e024845d3bb= 61c9e73d627f7 100644 --- a/drivers/gpu/drm/mcde/mcde_dsi.c +++ b/drivers/gpu/drm/mcde/mcde_dsi.c @@ -64,13 +64,13 @@ static inline struct mcde_dsi *host_to_mcde_dsi(struct = mipi_dsi_host *h) return container_of(h, struct mcde_dsi, dsi_host); } =20 -bool mcde_dsi_irq(struct mipi_dsi_device *mdsi) +bool mcde_dsi_irq(struct mipi_dsi_host *host) { struct mcde_dsi *d; u32 val; bool te_received =3D false; =20 - d =3D host_to_mcde_dsi(mdsi->host); + d =3D host_to_mcde_dsi(host); =20 dev_dbg(d->dev, "%s called\n", __func__); =20 --=20 2.49.0