All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Luo Liu" <Luo.Liu@cixtech.com>, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 1/3] drm/komeda: Use the bridge connector
Date: Tue, 24 Nov 2026 07:53:17 +0000	[thread overview]
Message-ID: <sashiko-outbox-230685@kernel.org> (raw)
In-Reply-To: <20261124073600.3124817-2-Luo.Liu@cixtech.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/komeda: broken HDMI mode and infoframes with tda998x in
  komeda_attach_bridge()
--

commit bdbabac7105a78a4323f2290c9df8999b1ab4fac
Author: Luo Liu <Luo.Liu@cixtech.com>

drm/komeda: Use the bridge connector

This commit updates komeda to attach bridges with
DRM_BRIDGE_ATTACH_NO_CONNECTOR and creates the connector via
drm_bridge_connector_init().

> diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c b/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c
> index 0fd069fc3386d..3d5f06e085fac 100644
> --- a/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c
> +++ b/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c
[ ... ]
> @@ -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;
> +	}
>  
> -	return err;
> +	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);
> +	}

[Severity: Medium]
Does attaching with DRM_BRIDGE_ATTACH_NO_CONNECTOR break HDMI output,
infoframes, audio and hotplug notifications on Arm Morello SDP
(arch/arm64/boot/dts/arm/morello-sdp.dts)?

Morello SDP is the only mainline board using komeda, and it connects its
pipeline output to an nxp,tda998x bridge.  When attached with
DRM_BRIDGE_ATTACH_NO_CONNECTOR, tda998x_bridge_attach() skips
tda998x_connector_init(), so EDID reads via the new drm_bridge_connector
populate display_info on the bridge connector while leaving the driver's
internal priv->connector zeroed.

During modeset, tda998x_bridge_mode_set() still reads display_info from
priv->connector:

drivers/gpu/drm/bridge/tda998x_drv.c:tda998x_bridge_mode_set() {
    ...
	if (priv->connector.display_info.rgb_quant_range_selectable)
    ...
	priv->supports_infoframes = priv->connector.display_info.cea_rev >= 3;
    ...
}

Because priv->connector.display_info.cea_rev remains 0,
priv->supports_infoframes is always false, leaving the transmitter in DVI
mode without AVI/VSI infoframes or HDMI audio.  In addition,
tda998x_detect_work() checks priv->connector.dev before reporting hotplug
events and never calls drm_bridge_hpd_notify(), so HPD interrupts are no
longer reported either.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261124073600.3124817-1-Luo.Liu@cixtech.com?part=1

  reply	other threads:[~2026-11-24  7:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  7:35 [PATCH v2 0/3] drm/komeda: Use the bridge connector Luo Liu
2026-11-24  7:35 ` [PATCH v2 1/3] " Luo Liu
2026-11-24  7:53   ` sashiko-bot [this message]
2026-11-24  7:35 ` [PATCH v2 2/3] drm/komeda: Use drmm_mode_config_init() Luo Liu
2026-11-24  7:36 ` [PATCH v2 3/3] drm/komeda: Free the IRQ before clearing dev_private 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=sashiko-outbox-230685@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Luo.Liu@cixtech.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.