From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796113777; b=vc0aPsHb22rb7TQUd6xL10Mu11paFb95b4BZWuHYK4BvZXvIHo72MlFCpleh617WrSdW 43PNnaI2H0YG8klH2TPWWoCcO569AuNSS3zUgl2fDGL8P88LOcEoYTV6xmshwdycYIqUU uGdLYnW0Wq/VD5Wi9ByeraT6pXc4/hnGB8HvxwGdVBQN7eUr65WUL4TVdLJxraJfeRiC5 8wCz8VQ54HJ4c3t5E0LKuy7Q5haXYVw5fhRNZb4g6653VqFCEK1oWdrU2t/4/CwqKotTd d5ObDieFmAMmLyJuuF7Lfj+WcQsxXOzZUfiJ19chnFKOB6J9OwB7DO3b08fk/sPsZ4A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796113777; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Mime-Version: Content-Transfer-Encoding:Content-Type:Date:Message-Id:Subject:Cc:To: From:X-Mailer:References:In-Reply-To:X-Last-TLS-Session-Version; bh=rkIWLwVqQNyUwAdeD8C0lIVzC0TQf9kXS+fmigR3z3Q=; b=yHoPoiwyQ73cBOPwIve01wPCvBrAVCV1Qt0iqfTdwh9fqqYXAW4LM6yPyxKu4G9xFoXl zCb/jP6wh4/MdaEdeHSH7FUR6gb8T34R4umRLb/XLd/0emuqpNA4rnAmW23rx3fVJ6tyD hGjYOOkycdqGjLk/x/yFhtPksKbz/UxvM4lg4z+0R4RI9gNClL1EG4ptkxD9Bk0rI0Kpf /j0xLfRFdwHL0cS1C/ethV1D8Kbgnn7QD433a3qcpcbIIBnttEvxs41J1TO8rQteRiz18 5BvFBlP9oKbZ7vHxYxRka6jZ0ambsadGq+NsJWMbANckFVP+ogsBleaJUIdNu16aBcQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b="pSk/4E7m"; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 81C1F606A33D for ; Tue, 1 Dec 2026 08:29:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 81C1F606A33D 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.a=rsa-sha256 header.s=dkim header.b=pSk/4E7m 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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