From nobody Wed Dec 17 19:17:03 2025 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 7C47826F2AD for ; Fri, 3 Oct 2025 09:00:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759482048; cv=none; b=olaJ+jChiirnhH0voMi64iFtoboGVLtKnb4USyJj+i3euaZw3Fj6bERbpl50/xGoAC7JY8McSnSP6CQwnMEE3ZwuAd6seo2GJ2iRVB+41lYGhJB78QHRjKdc7+LNrAjjmPBXWxiyQuJ6v16Y38mhD/1HGsbLfQCNkd+9WOddyX8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759482048; c=relaxed/simple; bh=kLoCyULXnAwRMYE7yzuvW8s2/zTfNQjHIgvV1n0Bc38=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=c4CpkTMtF+knFpStQ8tgs7z8FaXhmns/7KZpkZMODQuMhdwRl3YnLkZ98eUhNrb+J+0MpTqUBfe40G98KEyrQrxcMBVqxKDbRfY2hXcai5WIPyU5z9HRtFLPNIEivEKGI6AGwer+eSxbPQ9/gjCm+ct3uL+xTZ4uN1ABlbv0GIo= 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=ApqGFf2Q; arc=none smtp.client-ip=185.171.202.116 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="ApqGFf2Q" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id E89DFC00D98; Fri, 3 Oct 2025 09:00:26 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id E7A2E60683; Fri, 3 Oct 2025 09:00:44 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 0A47D102F1C24; Fri, 3 Oct 2025 11:00:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1759482043; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=w/wMDW+ORc4IMlsm9YNmK+hs7D2/6cQwBTxkTz703Fk=; b=ApqGFf2QVFtIC4jXGJmWPKeuVCliDaErNZgd8yq3fINh2qnqkx+xp8BAksynsjcC3gA78I cXZ9b7nadeQQsdKelBS/XHwPsGH3lSdIP4fCLbqDmmBgcNjtpyW85ZMpOdMUplbsaDeUIn 3H2frNCuAIy3goJy0A9Hu0RQ0cPXVni21TdpkYuoV4EO/8Kc8LIw+T/KZv7PVAuke9x+3Y VRu8XKpet9roen1fR5n6MfKwnl0gysfU0I7+k0lXCrr3TtH3o6piOky8CcUl/FXBAlXYPg 4oqdFegOZabnbiPm8/CbSkifDUXvIguPgX3ol8MJ+Fq3FJflHpqv/udHX/fKgA== From: Luca Ceresoli Date: Fri, 03 Oct 2025 10:59:55 +0200 Subject: [PATCH 1/4] drm/sti: hda: add bridge before attaching 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: <20251003-b4-drm-bridge-alloc-add-before-attach-v1-1-92fb40d27704@bootlin.com> References: <20251003-b4-drm-bridge-alloc-add-before-attach-v1-0-92fb40d27704@bootlin.com> In-Reply-To: <20251003-b4-drm-bridge-alloc-add-before-attach-v1-0-92fb40d27704@bootlin.com> To: Alain Volmat , Raphael Gallais-Pou , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: Hui Pu , Thomas Petazzoni , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Luca Ceresoli X-Mailer: b4 0.14.2 X-Last-TLS-Session-Version: TLSv1.3 DRM bridges should be always added to the global bridge list before being attached. Link: https://lore.kernel.org/all/20250709-sophisticated-loon-of-rain-6ccdd= 8@houat/ Signed-off-by: Luca Ceresoli Acked-by: Raphael Gallais-Pou --- drivers/gpu/drm/sti/sti_hda.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/sti/sti_hda.c b/drivers/gpu/drm/sti/sti_hda.c index 2c015f563de96ae58959801493ead870c49f70e5..b7397827889c94d6f8e8c2a48b0= 9f06e29ceeaf7 100644 --- a/drivers/gpu/drm/sti/sti_hda.c +++ b/drivers/gpu/drm/sti/sti_hda.c @@ -779,6 +779,8 @@ static int sti_hda_probe(struct platform_device *pdev) return PTR_ERR(hda->clk_hddac); } =20 + drm_bridge_add(&hda->bridge); + platform_set_drvdata(pdev, hda); =20 return component_add(&pdev->dev, &sti_hda_ops); @@ -786,7 +788,10 @@ static int sti_hda_probe(struct platform_device *pdev) =20 static void sti_hda_remove(struct platform_device *pdev) { + struct sti_hda *hda =3D platform_get_drvdata(pdev); + component_del(&pdev->dev, &sti_hda_ops); + drm_bridge_remove(&hda->bridge); } =20 static const struct of_device_id hda_of_match[] =3D { --=20 2.51.0