All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marius Vlad <marius.vlad@collabora.com>
To: Maxime Ripard <mripard@kernel.org>
Cc: dri-devel@lists.freedesktop.org, wse@tuxedocomputers.com,
	andri@yngvason.is, sebastian.wick@redhat.com,
	daniel.stone@collabora.com, jani.nikula@linux.intel.com,
	tzimmermann@suse.de, simona.vetter@ffwll.ch,
	harry.wentland@amd.com, christian.koenig@amd.com,
	derek.foreman@collabora.com
Subject: Re: [PATCH 5/8] drm: Pass supported color formats straight onto drm_bridge
Date: Fri, 12 Sep 2025 22:09:54 +0300	[thread overview]
Message-ID: <aMRwAmxQmHCmWBzY@xpredator> (raw)
In-Reply-To: <20250912-efficient-pistachio-tiger-a7ce06@penduick>

[-- Attachment #1: Type: text/plain, Size: 2620 bytes --]

On Fri, Sep 12, 2025 at 05:33:42PM +0200, Maxime Ripard wrote:
> On Thu, Sep 11, 2025 at 04:07:36PM +0300, Marius Vlad wrote:
> > diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c
> > index 61cab32e213a..15820e6ba057 100644
> > --- a/drivers/gpu/drm/mediatek/mtk_dpi.c
> > +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c
> > @@ -1057,7 +1057,7 @@ static int mtk_dpi_bind(struct device *dev, struct device *master, void *data)
> >  	if (ret)
> >  		goto err_cleanup;
> >  
> > -	dpi->connector = drm_bridge_connector_init(drm_dev, &dpi->encoder);
> > +	dpi->connector = drm_bridge_connector_init(drm_dev, &dpi->encoder, BIT(HDMI_COLORSPACE_RGB));
> >  	if (IS_ERR(dpi->connector)) {
> >  		dev_err(dev, "Unable to create bridge connector\n");
> >  		ret = PTR_ERR(dpi->connector);
> > diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c
> > index d7726091819c..91afdbf676f0 100644
> > --- a/drivers/gpu/drm/mediatek/mtk_dsi.c
> > +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c
> > @@ -930,7 +930,7 @@ static int mtk_dsi_encoder_init(struct drm_device *drm, struct mtk_dsi *dsi)
> >  	if (ret)
> >  		goto err_cleanup_encoder;
> >  
> > -	dsi->connector = drm_bridge_connector_init(drm, &dsi->encoder);
> > +	dsi->connector = drm_bridge_connector_init(drm, &dsi->encoder, BIT(HDMI_COLORSPACE_RGB));
> >  	if (IS_ERR(dsi->connector)) {
> >  		DRM_ERROR("Unable to create bridge connector\n");
> >  		ret = PTR_ERR(dsi->connector);
> > diff --git a/drivers/gpu/drm/meson/meson_encoder_cvbs.c b/drivers/gpu/drm/meson/meson_encoder_cvbs.c
> > index dc374bfc5951..a475fc34ca23 100644
> > --- a/drivers/gpu/drm/meson/meson_encoder_cvbs.c
> > +++ b/drivers/gpu/drm/meson/meson_encoder_cvbs.c
> > @@ -275,7 +275,8 @@ int meson_encoder_cvbs_probe(struct meson_drm *priv)
> >  	}
> >  
> >  	/* Initialize & attach Bridge Connector */
> > -	connector = drm_bridge_connector_init(priv->drm, &meson_encoder_cvbs->encoder);
> > +	connector = drm_bridge_connector_init(priv->drm,
> > +			&meson_encoder_cvbs->encoder, BIT(HDMI_COLORSPACE_RGB));
> >  	if (IS_ERR(connector))
> >  		return dev_err_probe(priv->dev, PTR_ERR(connector),
> >  				     "Unable to create CVBS bridge connector\n");
> 
> Why do we need to pass an HDMI color format for a DSI, DPI or Analog TV
> driver?
That's what drm_bridge_connector_init() had initially set as supported
color format. I just pulled that out for every other driver that made
use of drm_bridge_connector_init. So I guess the answer is we don't
actually need to do that.
> 
> Maxime



[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2025-09-12 19:10 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-11 13:07 [PATCH v3 0/8] Add new general DRM property "color format" Marius Vlad
2025-09-11 13:07 ` [PATCH 1/8] drm/amd/display: Remove unnecessary SIGNAL_TYPE_HDMI_TYPE_A check Marius Vlad
2025-09-11 13:07 ` [PATCH 2/8] hdmi: Add HDMI_COLORSPACE_AUTO enum option Marius Vlad
2025-09-12 15:17   ` Maxime Ripard
2025-09-12 18:39     ` Marius Vlad
2025-09-17 14:42       ` Maxime Ripard
2025-09-11 13:07 ` [PATCH 3/8] drm: Add new general DRM property "color format" Marius Vlad
2025-09-11 13:50   ` Dmitry Baryshkov
2025-09-11 17:15     ` Marius Vlad
2025-09-15  0:57       ` Dmitry Baryshkov
2025-09-15 10:33         ` Daniel Stone
2025-09-15 10:46           ` Dmitry Baryshkov
2025-09-16 11:04             ` Daniel Stone
2025-09-16  8:29           ` Maxime Ripard
2025-09-16 10:46             ` Daniel Stone
2025-09-16 10:48               ` Daniel Stone
2025-09-16 10:57                 ` Dmitry Baryshkov
2025-09-16 11:11                   ` Daniel Stone
2025-09-16 11:15                     ` Dmitry Baryshkov
2025-09-16 11:35                       ` Daniel Stone
2025-09-16 16:13                         ` Dmitry Baryshkov
2025-09-11 13:07 ` [PATCH 4/8] drm: Add enum conversion from/to HDMI_COLORSPACE to DRM_COLOR_FORMAT Marius Vlad
2025-09-12 15:19   ` Maxime Ripard
2025-09-26 14:50     ` Cristian Ciocaltea
2025-09-30 11:40       ` Maxime Ripard
2025-09-11 13:07 ` [PATCH 5/8] drm: Pass supported color formats straight onto drm_bridge Marius Vlad
2025-09-11 13:55   ` Dmitry Baryshkov
2025-09-11 17:34     ` Marius Vlad
2025-09-12 15:31       ` Maxime Ripard
2025-09-12 18:57         ` Marius Vlad
2025-09-12 21:17           ` Dmitry Baryshkov
2025-09-12 15:33   ` Maxime Ripard
2025-09-12 19:09     ` Marius Vlad [this message]
2025-09-15  0:59       ` Dmitry Baryshkov
2025-09-11 13:07 ` [PATCH 6/8] drm/i915: Implement the "color format" DRM property Marius Vlad
2025-09-11 13:07 ` [PATCH 7/8] drm/amdgpu: Implement " Marius Vlad
2025-09-11 13:07 ` [PATCH 8/8] drm/rockchip: " Marius Vlad
2025-09-26 17:58   ` Cristian Ciocaltea

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=aMRwAmxQmHCmWBzY@xpredator \
    --to=marius.vlad@collabora.com \
    --cc=andri@yngvason.is \
    --cc=christian.koenig@amd.com \
    --cc=daniel.stone@collabora.com \
    --cc=derek.foreman@collabora.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=harry.wentland@amd.com \
    --cc=jani.nikula@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=sebastian.wick@redhat.com \
    --cc=simona.vetter@ffwll.ch \
    --cc=tzimmermann@suse.de \
    --cc=wse@tuxedocomputers.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 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.