From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 388423939B1 for ; Fri, 14 Aug 2026 14:06:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786716414; cv=none; b=uLFG+Elj2S4jHCxH2eQeZ4dlN8SW9fnjZvgQ8szRcJYVT1O2I/Kh0cAnGb3boxGJsVbahO4sbbG8r2n80EjNjbPkkpx6UUe4Iqkb5bqTjy78OSiRE2FZCwSrIISRujJQYxWQRKJ8OgAsoDPJrHXTp7E53dYqG35ZWnxA3/zzz0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786716414; c=relaxed/simple; bh=9lDSKMRU66IZ23NwUg8kj05ba+PLuumOHC5P7v6Fx2I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JkUPP5eCCbsJ/E8Pt4ZUCatxmyCM73UCmcOWuIDx0Ygklus4Oh9YydCC16qJ3BQkWVSkZmOQ85o+tnFIaeepKkYoG4VSC59xLd5Av7B32mFRKO1FzRYsNw/Gd4toI+/Kebhe6a8JdW2ofeSztioX19punhrRbnONlH+xbauseaI= 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=xyYRK6Qi; arc=none smtp.client-ip=185.246.84.56 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="xyYRK6Qi" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 7512B1A163B; Fri, 14 Aug 2026 14:06:45 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 49B056046D; Fri, 14 Aug 2026 14:06:45 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 76FBB11C4EDA5; Fri, 14 Aug 2026 16:06:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1786716404; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=dQ3Jok/l1psHBc/8VDJALjoxzjXNRM6OdPzV1zrK2Ng=; b=xyYRK6QiO38EkCyy8JQwUGEgtDnLWNwg4FpCQExNQaO5Mi6w7DfacuGrx/R9fcpGLMYOya 58PfhTtMRyvb9S90l3eAYBLKRCU+iE06lbGkkcqlH8KoMYwlCdRr28LvsFxsGzmbhPmZto d372N3AhyCRwPRd5PahRW3tRQsDDZRKL58HdV0kCECgdKCO8A6okaFHbUQS/hzUU3oQ6rR IKyTd6yELspJbXWZm86r7HI5D15+O2g7vwngpT71wYcWrMVYCKjr06GQuJWEqLiWaFaJgs Dt5/60zfRMH8wuUc2wy8B15a5VLdeOFDIjjuM9ISxidLI1ygYXQA118IaUUn8g== From: Luca Ceresoli Date: Fri, 14 Aug 2026 16:05:52 +0200 Subject: [PATCH 04/11] drm/panel: merge the drm_kms_helper module into the drm module 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: <20260814-drm-bridge-every-panel-v1-4-19cd5277cc8d@bootlin.com> References: <20260814-drm-bridge-every-panel-v1-0-19cd5277cc8d@bootlin.com> In-Reply-To: <20260814-drm-bridge-every-panel-v1-0-19cd5277cc8d@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 , Jessica Zhang , Linus Walleij , Inki Dae , Jagan Teki , Marek Szyprowski Cc: Dmitry Baryshkov , Hui Pu , Ian Ray , Thomas Petazzoni , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Luca Ceresoli X-Mailer: b4 0.16.0 X-Last-TLS-Session-Version: TLSv1.3 Work is in progress to make every drm_panel automatically create a panel_bridge [0][1]. This requires the panel code to call the drm_panel_bridge APIs. However this would create a circular dependency loop on modular builds: __devm_drm_panel_alloc() [drm] -> drm_panel_bridge_add() [drm_kms_helper] -> drm_bridge.c APIs [drm] Moving just the panel_brige.o file from [drm_kms_helper] to [drm] does not work because the panel bridge code uses the drm_atomic_helper and drm_probe_helper which add further dependencies on symbols in the [drm_kms_helper] module. So take a simple approach, and move the entire drm_kms_helper into the [drm] module. Link: https://lore.kernel.org/all/emuj2innmp6zmzd7pyakqzjqpdzhly6qfhakya3ydwmd63pl26@5jwxaidpikjw/ [0] Link: https://lore.kernel.org/lkml/20250206-hotplug-drm-bridge-v6-8-9d6f2c9c3058@bootlin.com/ [1] Signed-off-by: Luca Ceresoli --- *Note* This is just a quick implementation to open a discussion while having a working implementation. If the approach is approved there will be more details to polish. --- drivers/gpu/drm/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile index e97faabcd783..945d4f117c3f 100644 --- a/drivers/gpu/drm/Makefile +++ b/drivers/gpu/drm/Makefile @@ -139,7 +139,7 @@ obj-$(CONFIG_DRM_TTM_HELPER) += drm_ttm_helper.o # Modesetting helpers # -drm_kms_helper-y := \ +drm-$(CONFIG_DRM_KMS_HELPER) := \ drm_atomic_helper.o \ drm_atomic_state_helper.o \ drm_bridge_helper.o \ @@ -156,9 +156,8 @@ drm_kms_helper-y := \ drm_self_refresh_helper.o \ drm_simple_kms_helper.o \ drm_vblank_helper.o -drm_kms_helper-$(CONFIG_DRM_PANEL_BRIDGE) += bridge/panel.o -drm_kms_helper-$(CONFIG_DRM_FBDEV_EMULATION) += drm_fb_helper.o -obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o +drm-$(CONFIG_DRM_PANEL_BRIDGE) += bridge/panel.o +drm-$(CONFIG_DRM_FBDEV_EMULATION) += drm_fb_helper.o # # Drivers and the rest -- 2.55.0