From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9AFAECD8C9D for ; Mon, 8 Jun 2026 11:46:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3YexfljBk8pDJLqWgaXTmVbxli8lauBy575LrntRJoU=; b=CWNU78tEat7o4DVx6VbdwU4SpG c2xyCWmC5d+X0ktB+gnhYQMje9ekNuD/61xYn7UH8l4gWJfIczaVOK3PS38A1c+OEACF5yJDvMNoD AeJVMMyzZFqKLKNGx7tfLXILp0e+mvybP2xOP46HPN2h7EHS8BYyX+aCnnYJy7twUoyenxfoKG1B9 LrWfhMF9JsJhIlmhNYEN4nn/TsgBHJKcLzDQWidz74nmqKcYPVhodUhkS5thCkw6z7+H2JGZLLu8t 9Fa+tVhB4ZioRHWlajQ+hbIUjk6j3z3CfQoP+mWNdyRp7pimJqqNC1Ff94tbfvjoE8UEP+H8Qxgl7 z7t0+0nA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wWYRE-00000003SMs-0kVL; Mon, 08 Jun 2026 11:46:40 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wWYRC-00000003SMl-3X2G for linux-arm-kernel@lists.infradead.org; Mon, 08 Jun 2026 11:46:38 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 669E341AAD; Mon, 8 Jun 2026 11:46:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB8721F00893; Mon, 8 Jun 2026 11:46:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780919198; bh=3YexfljBk8pDJLqWgaXTmVbxli8lauBy575LrntRJoU=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ONBWUW40Y5seSsPy9q5535x6baYwCnP1TPwi8HH8WEUynsXkJRghQY5BSDfWX8WGI uSAvfQ+/Otoh4+3kSkVpUPHmeyEASP5pii3Z3i9bsf0tsxmAo6RAJMhBIB9jYxNWKD QMZ7KSzR8r4BWITUE+DHn8IIY+A5BgWRkSETp/AUdsJT3qsLeYV6o7TXHKWemBTrb/ 4Thajh7cN7hb+SvS7HKuUQ4gq0kmu35sLB/oaH96LdQEOidve8hyMclG7cQu5FhRVz fia4BpSzdwju33pwbqfDhyyy2znt83HT6at1UWeMKbd8fYXOYmAyWYMxbQxYWILeqw pij0H8I8mrXjw== Date: Mon, 8 Jun 2026 13:46:36 +0200 From: Maxime Ripard To: Luca Ceresoli Cc: Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Inki Dae , Jagan Teki , Marek Szyprowski , Marek Vasut , Stefan Agner , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Hui Pu , Ian Ray , Thomas Petazzoni , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 15/37] drm/display: bridge-connector: allocate the connector dynamically Message-ID: <20260608-rustling-infrared-turkey-e09af8@houat> References: <20260519-drm-bridge-hotplug-v1-0-45e2bdb3dfb4@bootlin.com> <20260519-drm-bridge-hotplug-v1-15-45e2bdb3dfb4@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha384; protocol="application/pgp-signature"; boundary="zkswocsay233wqed" Content-Disposition: inline In-Reply-To: <20260519-drm-bridge-hotplug-v1-15-45e2bdb3dfb4@bootlin.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --zkswocsay233wqed Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH 15/37] drm/display: bridge-connector: allocate the connector dynamically MIME-Version: 1.0 On Tue, May 19, 2026 at 12:37:32PM +0200, Luca Ceresoli wrote: > Currently the drm_bridge_connector has an embedded drm_connector, so their > allocation lifetimes are tied to each other. This is insufficient to > support DRM bridge hotplugging, which requires the connector to be added > and removed dynamically at runtime multiple times based on hotplug/unplug > events while the drm_bridge_connector is persistent. >=20 > Moreover the drm_connector is exposed to user space and thus an ongoing > operation (e.g. an ioctl) might last for an arbitrarily long time even > after the hardware gets removed. This means a new connector might have to > be added when the previous one is still referenced by user space. >=20 > In preparation to handle hotplug, allocate the drm-connector dynamically, > to allow: >=20 > * creating and destroying a connector multiple times during a single > drm_bridge_connector lifetime > * creating a new connector even though the previous one is still in use > and thus still refcounted and not yet freed >=20 > This commit does not introduce the actions in the two bullets (it will > happen in a later commit), it only moves to dynamic APIs for connector > allocation and init. >=20 > Signed-off-by: Luca Ceresoli I think this patch should be split in half, with the switch to using destroy first, and then the actual move to the dynamically allocated connector API. Maxime --zkswocsay233wqed Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iJUEABMJAB0WIQTkHFbLp4ejekA/qfgnX84Zoj2+dgUCaiarmwAKCRAnX84Zoj2+ dg4NAYCKBku1y1njVJbmc1N2fGvFbJXDz9zum9YGh3536/rvMj6YBYGDm1TRHrvz kN0ddaUBfi2bAxpdRbhtOPcxlSyNG0d1CeAj8UGCNRBJC/7nUkheXU2p7eAEzNjJ k3MlFuBocQ== =ZnkV -----END PGP SIGNATURE----- --zkswocsay233wqed--