From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 5FE20606A325 for ; Tue, 1 Dec 2026 08:29:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=pSk/4E7m Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C570F10E359; Tue, 1 Dec 2026 08:29:42 +0000 (UTC) Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) by gabe.freedesktop.org (Postfix) with ESMTPS id 768FB10E359 for ; Tue, 1 Dec 2026 08:29:36 +0000 (UTC) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 69E47C2AC7C; Tue, 1 Dec 2026 08:29:44 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id EA0EF603CB; Tue, 1 Dec 2026 08:29:33 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 0986711EA0948; Tue, 01 Dec 2026 09:29:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796113772; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=rkIWLwVqQNyUwAdeD8C0lIVzC0TQf9kXS+fmigR3z3Q=; b=pSk/4E7mESBpVCL2hD2qssLtIwqw0sfI28lNwRV3VyGI1EyePrk8TJYrQpg30OHpjqXFNH MaE3hWEHGBPnOJntTcgrrLA+sJjPDF/JixaDTVN2gKkTPqcoSi5IxWgI0ui0CVqJW4+4Rh ulnY38GX42NYNAJu3iNRs/W9pv0HSGAHpja987RzGm6+rstuExcR45vz+4dMiPPy/rD7Iq h8f/vx48LD5XFsTYb7cACv4V8Npn3mZMeER+zaldp2zBVQ+rdkRQPKoHI8EqvhHG54s7e3 1z9H5apao4HNsnuKDg0Oa5ccGPTz/t7kn8itfc+KMX5pWRFYBwWJxe4At627FQ== X-Archived-By: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 01 Dec 2026 09:29:24 +0100 Message-Id: Subject: =?utf-8?q?Re:_=E5=9B=9E=E5=A4=8D:_[PATCH_v5_1/2]_drm/komeda:_Use_the_brid?= =?utf-8?q?ge_connector?= Cc: "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "Liviu Dudau" , "Russell King" , "dri-devel@lists.freedesktop.org" , "Ayan Halder" , "Andrzej Hajda" , "Neil Armstrong" , "Robert Foss" , "Laurent Pinchart" , "Jonas Karlman" , "Jernej Skrabec" , "Kory Maincent" , "David Airlie" , "Simona Vetter" , "linux-kernel@vger.kernel.org" , "cix-kernel-upstream" , =?utf-8?b?V3V5aSBTaGVuICjmsojmrabkuYkp?= To: "Luo Liu" , "Luca Ceresoli" From: "Luca Ceresoli" X-Mailer: aerc 0.22.0 References: <20261130115213.843515-1-Luo.Liu@cixtech.com> <20261130115213.843515-2-Luo.Liu@cixtech.com> <179605981489.15431.7423904477627385419.b4-review@b4> In-Reply-To: X-Last-TLS-Session-Version: TLSv1.3 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "dri-devel" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Hello Luo, On Tue Dec 1, 2026 at 3:12 AM CET, Luo Liu wrote: >> > Bridges following the new DRM bridge model no longer create a >> > connector >> > themselves: the display driver has to attach them with >> > DRM_BRIDGE_ATTACH_NO_CONNECTOR and create one connector for the >> whole >> > chain with drm_bridge_connector_init(). >> > >> > Convert komeda to that model, so it keeps working with bridges that >> > have moved to the new one. The bridges komeda binds to in mainline >> > support connector-less attach, so boards using them are unaffected. >> >> You say all those bridges support connector-less attach. But I only foun= d one such >> bridge bound in mainline dts files, that's the tda998x, and v4 patch 4 (= which you >> are correctly sending separately now) is "tda998x: fix >> DRM_BRIDGE_ATTACH_NO_CONNECTOR support". So does this patch depend >> on the tda998x fix patch? >> > > komeda is the DPU, the upstream end of the display chain; our DP > controller, which is being upstreamed on the new DRM bridge model, and > the tda998x HDMI transmitter are both downstream of it. komeda therefore > has to be converted first, and that is what this series does. > > You are right that the Morello SDP board also needs the tda998x fix. > That fix is independent of this conversion; I will post it as a separate = tda998x patch. Not sure I'm convinced, but as you are sending the fix separately it should land earlier (through drm-misc-fixes), so no problem. >> > Select DRM_BRIDGE_CONNECTOR for drm_bridge_connector_init() and >> > DRM_DISPLAY_HELPER, as the bridge connector is only visible when the >> > display helper is enabled. >> > >> > Signed-off-by: Luo Liu >> >> ... >> > + if (err) { >> > drm_err(drm, "bridge_attach() failed for pipe: %s\n", >> > of_node_full_name(pipe->of_node)); >> > + return err; >> > + } >> >> Please add a patch to switch to dev_err_probe() before this one, in the = same >> series. As I see this function is only called by the probe function, thr= ough a fairly >> long call chain. >> >> > + connector =3D drm_bridge_connector_init(drm, encoder); >> > + if (IS_ERR(connector)) { >> > + drm_err(drm, "bridge connector init failed for pipe: %= s\n", >> > + of_node_full_name(pipe->of_node)); >> > + return PTR_ERR(connector); >> > + } >> >> Here too, use dev_err_probe(). >> >> Otherwise looks good. > > > Thanks a lot for the review. That is a very good suggestion. > > Since this series is about the conversion to the new DRM bridge model, > and to keep the conversion patch aligned with the versions already > reviewed, would it be better to add the dev_err_probe() conversion as a > separate patch at the end of the series instead of before it? I will of > course use dev_err_probe() in the new error paths this series adds. What you propose would possibly make sense for a very complex patch, where the improvements you're asked to do would change it significantly and so require a lot of time to reviewe again. But this is a simple patch, it won't take long to review, especially if you send it in a few days so reviewers still have it in mind. So, please, let's not add code that is known to not follow the best guidelines with the committment to fix it later. Just send a new iteration with an initial patch to switch the existing drm_err to dev_err_probe, and then edit this patch to use dev_err_prove in the first place. I'll be glad to add my R-by to such a series. Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com