mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Luo Liu <Luo.Liu@cixtech.com>
To: Luca Ceresoli <luca.ceresoli@bootlin.com>
Cc: "Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"Liviu Dudau" <liviu.dudau@arm.com>,
	"Russell King" <linux@armlinux.org.uk>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"Ayan Halder" <Ayan.Halder@arm.com>,
	"Andrzej Hajda" <andrzej.hajda@intel.com>,
	"Neil Armstrong" <neil.armstrong@linaro.org>,
	"Robert Foss" <rfoss@kernel.org>,
	"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
	"Jonas Karlman" <jonas@kwiboo.se>,
	"Jernej Skrabec" <jernej.skrabec@gmail.com>,
	"Kory Maincent" <kory.maincent@bootlin.com>,
	"David Airlie" <airlied@gmail.com>,
	"Simona Vetter" <simona@ffwll.ch>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	cix-kernel-upstream <cix-kernel-upstream@cixtech.com>,
	"Wuyi Shen (沈武义)" <wuyi.shen@cixtech.com>
Subject: 回复: [PATCH v5 1/2] drm/komeda: Use the bridge connector
Date: Tue, 1 Dec 2026 02:12:23 +0000	[thread overview]
Message-ID: <JH0SPRMB00747EB784CB7EFCF887E1CBF54D2@JH0SPRMB0074.apcprd06.prod.outlook.com> (raw)
In-Reply-To: <179605981489.15431.7423904477627385419.b4-review@b4>

Hello Luca,

	Thank you very much for your review and suggestions.

> -----邮件原件-----
> 发件人: Luca Ceresoli <luca.ceresoli@bootlin.com>
> 发送时间: 2026年12月1日 1:30
> 收件人: Luo Liu <Luo.Liu@cixtech.com>
> 抄送: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>; Maxime
> Ripard <mripard@kernel.org>; Thomas Zimmermann
> <tzimmermann@suse.de>; Liviu Dudau <liviu.dudau@arm.com>; Russell King
> <linux@armlinux.org.uk>; dri-devel@lists.freedesktop.org; Ayan Halder
> <Ayan.Halder@arm.com>; Andrzej Hajda <andrzej.hajda@intel.com>; Neil
> Armstrong <neil.armstrong@linaro.org>; Robert Foss <rfoss@kernel.org>;
> Laurent Pinchart <laurent.pinchart@ideasonboard.com>; Jonas Karlman
> <jonas@kwiboo.se>; Jernej Skrabec <jernej.skrabec@gmail.com>; Kory
> Maincent <kory.maincent@bootlin.com>; Luca Ceresoli
> <luca.ceresoli@bootlin.com>; David Airlie <airlied@gmail.com>; Simona Vetter
> <simona@ffwll.ch>; linux-kernel@vger.kernel.org; cix-kernel-upstream
> <cix-kernel-upstream@cixtech.com>; Wuyi Shen (沈武义)
> <Wuyi.Shen@cixtech.com>
> 主题: Re: [PATCH v5 1/2] drm/komeda: Use the bridge connector
> 
> [Some people who received this message don't often get email from
> luca.ceresoli@bootlin.com. Learn why this is important at
> https://aka.ms/LearnAboutSenderIdentification ]
> 
> EXTERNAL EMAIL
> 
> Hello Luo,
> 
> > 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 found 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.

> > 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 <Luo.Liu@cixtech.com>
> 
> ...
> 
> > --- a/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c
> > +++ b/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c
> > @@ -15,6 +15,7 @@
> >  #include <drm/drm_print.h>
> >  #include <drm/drm_vblank.h>
> >  #include <drm/drm_bridge.h>
> > +#include <drm/drm_bridge_connector.h>
> >  #include <drm/drm_panel.h>
> >
> >  #include "komeda_dev.h"
> > @@ -617,6 +618,7 @@ static int komeda_attach_bridge(struct device *dev,
> >                               struct drm_encoder *encoder)  {
> >       struct drm_device *drm = encoder->dev;
> > +     struct drm_connector *connector;
> >       struct drm_bridge *bridge;
> >       int err;
> >
> > @@ -626,12 +628,22 @@ static int komeda_attach_bridge(struct device *dev,
> >               return dev_err_probe(dev, PTR_ERR(bridge), "remote
> bridge not found for pipe: %s\n",
> >
> of_node_full_name(pipe->of_node));
> >
> > -     err = drm_bridge_attach(encoder, bridge, NULL, 0);
> > -     if (err)
> > +     err = drm_bridge_attach(encoder, bridge, NULL,
> > +
> DRM_BRIDGE_ATTACH_NO_CONNECTOR);
> > +     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, through a fairly
> long call chain.
> 
> > +       connector = 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.


Best regards,
Luo

> 
> Luca
> 
> --
> Luca Ceresoli, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com


  reply	other threads:[~2026-12-01  2:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 11:52 [PATCH v5 0/2] drm/komeda: use " Luo Liu
2026-11-30 11:52 ` [PATCH v5 1/2] drm/komeda: Use " Luo Liu
2026-11-30 17:30   ` Luca Ceresoli
2026-12-01  2:12     ` Luo Liu [this message]
2026-12-01  8:29       ` 回复: " Luca Ceresoli
2026-12-01  8:41         ` 回复: " Luo Liu
2026-11-30 11:52 ` [PATCH v5 2/2] drm/komeda: Use drmm_mode_config_init() Luo Liu
2026-11-30 17:30   ` Luca Ceresoli
2026-12-01  2:29     ` 回复: " Luo Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=JH0SPRMB00747EB784CB7EFCF887E1CBF54D2@JH0SPRMB0074.apcprd06.prod.outlook.com \
    --to=luo.liu@cixtech.com \
    --cc=Ayan.Halder@arm.com \
    --cc=airlied@gmail.com \
    --cc=andrzej.hajda@intel.com \
    --cc=cix-kernel-upstream@cixtech.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=kory.maincent@bootlin.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=liviu.dudau@arm.com \
    --cc=luca.ceresoli@bootlin.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=rfoss@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    --cc=wuyi.shen@cixtech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®