From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68A1D606A329 for ; Tue, 1 Dec 2026 10:40:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=HGr3ijwL; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=izzVfZi+ 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-Unsubscribe-Post:List-Owner; bh=3iEkGnUY8UYWAzSXzcUbeB1vIHV2ffJ/LbqT3htImYk=; b=HGr3ijwLG5IVmH2ljyCKo1idcH qoN+ozfk+evtp+Ea1SNab1byhW6/NZSQW70QtjI0/1KIo3oaTG9M91utx+xxn5exdDbkTHIxMvTnh OWDrseqf8kTa2MHGp9CvpbGVevPrNnC3ReNJ+nUXdc4hiNgaYRBAoYzAR5FKyVavBytyMolpaXQ15 doW7mS1wdOigLRZX4MLaAaoc3+wZZlNVdO9DFU4wDmUxY1aatYtqpgvBVCI2tRHzw0HQrWq2TSd0l CXzYf91DzRMhEOcBEVFlgS8mow2EhI4MRCR4uCJ4yDl2OZZeEpVx/1XIMY2zOFYuzejLrjn0xVe6Z 0cHYqjNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYLHS-00000007QuA-0kXZ; Tue, 01 Dec 2026 10:40:15 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYLHQ-00000007Qtw-3KCy for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2026 10:40:12 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 3A0A842BD0; Tue, 1 Dec 2026 10:40:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28C3E1F000C1; Tue, 1 Dec 2026 10:40:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796121611; bh=3iEkGnUY8UYWAzSXzcUbeB1vIHV2ffJ/LbqT3htImYk=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=izzVfZi+alJRNZ4JkQ90pO662gx8A+VWxKjzw6qd73NhrnrgaJrUpx9DNWhCCZWhB gTs/3oxXRCDKG+Fa6Js1ChYNA38waiEAVkNVOSTMvw2iOMXCjBRabFk0UxDuIQaN8m Ez6zlA+w1PDt3dks5Z72H0rVs7MbRjlqrqYUPlGVxfOky0NSpBGxtYPOxW2zI/3mWo Xx5An0VQp4vNQOC6PC/wBVuv9qwc4wv36jXqpv0rZkmkEfhZVxIeb5A+hGlKkayo2s rhPMTeXiHq0fi7AbCzo4xzN68eqS1FZGoRld8jnxYmvIC1Zyx3pTPmG04car1pytxr 9h81XSfJ+csww== Date: Tue, 1 Dec 2026 11:40:09 +0100 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 , Jessica Zhang , Douglas Anderson , Marek Vasut , Stefan Agner , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Javier Martinez Canillas , Dmitry Baryshkov , 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 v4 20/32] drm/bridge: add drm_bridge_get_next() and supporting func Message-ID: References: <20261125-drm-bridge-hotplug-v4-0-822722850492@bootlin.com> <20261125-drm-bridge-hotplug-v4-20-822722850492@bootlin.com> X-Archived-By: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha384; protocol="application/pgp-signature"; boundary="qsi5yn5j2bbgfkit" Content-Disposition: inline In-Reply-To: <20261125-drm-bridge-hotplug-v4-20-822722850492@bootlin.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-15.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 --qsi5yn5j2bbgfkit Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Subject: Re: [PATCH v4 20/32] drm/bridge: add drm_bridge_get_next() and supporting func MIME-Version: 1.0 On Wed, Nov 25, 2026 at 06:50:33PM +0100, Luca Ceresoli wrote: > diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h > index d6ef020c4cc9..cfa0aff1de4f 100644 > --- a/include/drm/drm_bridge.h > +++ b/include/drm/drm_bridge.h > @@ -62,6 +62,25 @@ enum drm_bridge_attach_flags { > * struct drm_bridge_funcs - drm_bridge control functions > */ > struct drm_bridge_funcs { > + /** > + * @get_next_bridge: > + * > + * Return a pointer to the bridge connected at the output port of > + * this bridge. > + * > + * Returns: > + * * Pointer to a bridge connected to the output port of this bridge, > + * with refcount incremented; call drm_bridge_put() when done > + * * ERR_PTR(-ENODEV): this bridge has an output port where a next > + * bridge needs to be present for video output, > + * but the next bridge is not currently > + * available > + * * NULL: this bridge does not have an output port where a next > + * bridge is expected (e.g. a panel) > + * * Another negative error returned by the bridge func > + */ > + struct drm_bridge *(*get_next_bridge)(struct drm_bridge *bridge); > + > /** > * @attach: > * > @@ -1021,6 +1040,11 @@ enum drm_bridge_ops { > * &drm_bridge_funcs->hdmi_clear_spd_infoframe callbacks. > */ > DRM_BRIDGE_OP_HDMI_SPD_INFOFRAME = BIT(10), > + /** > + * @DRM_BRIDGE_OP_GET_NEXT_BRIDGE: The bridge implements the > + * &drm_bridge_funcs->get_next_bridge callback. > + */ > + DRM_BRIDGE_OP_GET_NEXT_BRIDGE = BIT(11), Acked-by: Maxime Ripard Note that it's going to conflict with https://lore.kernel.org/all/20261127-drm-state-readout-v10-23-0259582d45a8@kernel.org/ Maxime --qsi5yn5j2bbgfkit Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iJUEABMJAB0WIQTkHFbLp4ejekA/qfgnX84Zoj2+dgUCaw6kAQAKCRAnX84Zoj2+ drsTAX97w58//1RNVTP60mgcubfymqj8Sh7s2VFz87DdYD4t7cO8wjfacAlMiwsq H4pNt88BgIl2ibryE99fJxe0s7ysrHhVZkDVkk13HCcZSdkjL5em+23BG2EhjIQn y3eedXfvFw== =UA5t -----END PGP SIGNATURE----- --qsi5yn5j2bbgfkit--