All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liviu Dudau <liviu.dudau@arm.com>
To: Luo Liu <Luo.Liu@cixtech.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	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@cixtech.com,
	Wuyi.Shen@cixtech.com
Subject: Re: [PATCH v7 1/4] drm/komeda: Use dev_err_probe() when attaching a bridge
Date: Thu, 3 Dec 2026 15:09:24 +0000	[thread overview]
Message-ID: <axGGJKVjGqAxUWL9@e142607> (raw)
In-Reply-To: <20261201092432.387696-2-Luo.Liu@cixtech.com>

On Tue, Dec 01, 2026 at 05:24:29PM +0800, Luo Liu wrote:
> komeda_attach_bridge() is called from the probe path, through the
> pipeline setup in komeda_kms_attach(). Report a failure of
> drm_bridge_attach() with dev_err_probe(), which also keeps
> -EPROBE_DEFER silent.
> 
> Signed-off-by: Luo Liu <Luo.Liu@cixtech.com>

Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>

Best regards,
Liviu

> ---
>  drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c b/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c
> index 21445385b245..fad278d6ec18 100644
> --- a/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c
> +++ b/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c
> @@ -616,7 +616,6 @@ static int komeda_attach_bridge(struct device *dev,
>  				struct komeda_pipeline *pipe,
>  				struct drm_encoder *encoder)
>  {
> -	struct drm_device *drm = encoder->dev;
>  	struct drm_bridge *bridge;
>  	int err;
>  
> @@ -628,10 +627,10 @@ static int komeda_attach_bridge(struct device *dev,
>  
>  	err = drm_bridge_attach(encoder, bridge, NULL, 0);
>  	if (err)
> -		drm_err(drm, "bridge_attach() failed for pipe: %s\n",
> -			of_node_full_name(pipe->of_node));
> +		return dev_err_probe(dev, err, "bridge_attach() failed for pipe: %s\n",
> +				     of_node_full_name(pipe->of_node));
>  
> -	return err;
> +	return 0;
>  }
>  
>  static const struct drm_encoder_funcs komeda_encoder_funcs = {
> -- 
> 2.25.1
> 

-- 
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯

  reply	other threads:[~2026-12-03 15:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  9:24 [PATCH v7 0/4] drm/komeda: use the bridge connector Luo Liu
2026-12-01  9:24 ` [PATCH v7 1/4] drm/komeda: Use dev_err_probe() when attaching a bridge Luo Liu
2026-12-03 15:09   ` Liviu Dudau [this message]
2026-12-01  9:24 ` [PATCH v7 2/4] drm/komeda: Use drmm_mode_config_init() Luo Liu
2026-12-01  9:24 ` [PATCH v7 3/4] drm/komeda: Use the bridge connector Luo Liu
2026-12-01  9:24 ` [PATCH v7 4/4] drm/komeda: Free the IRQ before clearing dev_private Luo Liu
2026-12-01 10:22 ` [PATCH v7 0/4] drm/komeda: use the bridge connector Luca Ceresoli
2026-12-03 15:25 ` Liviu Dudau

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=axGGJKVjGqAxUWL9@e142607 \
    --to=liviu.dudau@arm.com \
    --cc=Ayan.Halder@arm.com \
    --cc=Luo.Liu@cixtech.com \
    --cc=Wuyi.Shen@cixtech.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=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 \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.