dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@collabora.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Jernej Skrabec <jernej.skrabec@siol.net>,
	Neil Armstrong <narmstrong@baylibre.com>,
	Jonas Karlman <jonas@kwiboo.se>,
	Seung-Woo Kim <sw0312.kim@samsung.com>,
	dri-devel@lists.freedesktop.org,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Thierry Reding <thierry.reding@gmail.com>,
	Chris Healy <Chris.Healy@zii.aero>,
	kernel@collabora.com, Sam Ravnborg <sam@ravnborg.org>
Subject: Re: [PATCH RFC 01/19] drm: Stop including drm_bridge.h from drm_crtc.h
Date: Wed, 21 Aug 2019 17:44:06 +0200	[thread overview]
Message-ID: <20190821174406.10c7af2e@collabora.com> (raw)
In-Reply-To: <20190820185315.GO10820@pendragon.ideasonboard.com>

On Tue, 20 Aug 2019 21:53:15 +0300
Laurent Pinchart <laurent.pinchart@ideasonboard.com> wrote:

> Hi Boris,
> 
> Thank you for the patch.
> 
> On Thu, Aug 08, 2019 at 05:11:32PM +0200, Boris Brezillon wrote:
> > We are about to add a drm_bridge_state that inherits from
> > drm_private_state which is defined in drm_atomic.h. Problem is,
> > drm_atomic.h includes drm_crtc.h which in turn includes drm_bridge.h,
> > leading to "drm_private_state has incomplete type" error.
> > 
> > Let's force all users of the drm_bridge API to explicitly include
> > drm_bridge.h.
> > 
> > Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
> > ---
> >  drivers/gpu/drm/arc/arcpgu_hdmi.c                        | 1 +
> >  drivers/gpu/drm/bridge/analogix-anx78xx.c                | 1 +
> >  drivers/gpu/drm/bridge/analogix/analogix_dp_core.c       | 1 +
> >  drivers/gpu/drm/bridge/dumb-vga-dac.c                    | 1 +
> >  drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c | 1 +
> >  drivers/gpu/drm/bridge/nxp-ptn3460.c                     | 1 +
> >  drivers/gpu/drm/bridge/panel.c                           | 1 +
> >  drivers/gpu/drm/bridge/parade-ps8622.c                   | 1 +
> >  drivers/gpu/drm/bridge/sii902x.c                         | 1 +
> >  drivers/gpu/drm/bridge/sii9234.c                         | 1 +
> >  drivers/gpu/drm/bridge/sil-sii8620.c                     | 1 +
> >  drivers/gpu/drm/bridge/synopsys/dw-hdmi.c                | 1 +
> >  drivers/gpu/drm/bridge/tc358764.c                        | 1 +
> >  drivers/gpu/drm/bridge/tc358767.c                        | 1 +
> >  drivers/gpu/drm/bridge/ti-sn65dsi86.c                    | 1 +
> >  drivers/gpu/drm/bridge/ti-tfp410.c                       | 1 +
> >  drivers/gpu/drm/drm_atomic_helper.c                      | 1 +
> >  drivers/gpu/drm/drm_crtc_helper.c                        | 1 +
> >  drivers/gpu/drm/drm_encoder.c                            | 1 +
> >  drivers/gpu/drm/drm_probe_helper.c                       | 1 +
> >  drivers/gpu/drm/drm_simple_kms_helper.c                  | 1 +
> >  drivers/gpu/drm/exynos/exynos_dp.c                       | 1 +
> >  drivers/gpu/drm/exynos/exynos_drm_dsi.c                  | 1 +
> >  drivers/gpu/drm/exynos/exynos_drm_mic.c                  | 1 +
> >  drivers/gpu/drm/exynos/exynos_hdmi.c                     | 1 +
> >  drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c                | 1 +
> >  drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c             | 1 +
> >  drivers/gpu/drm/i2c/tda998x_drv.c                        | 1 +
> >  drivers/gpu/drm/imx/imx-ldb.c                            | 1 +
> >  drivers/gpu/drm/imx/parallel-display.c                   | 1 +
> >  drivers/gpu/drm/ingenic/ingenic-drm.c                    | 1 +
> >  drivers/gpu/drm/mediatek/mtk_dpi.c                       | 1 +
> >  drivers/gpu/drm/mediatek/mtk_dsi.c                       | 1 +
> >  drivers/gpu/drm/mediatek/mtk_hdmi.c                      | 1 +
> >  drivers/gpu/drm/msm/dsi/dsi.h                            | 1 +
> >  drivers/gpu/drm/msm/edp/edp.h                            | 1 +
> >  drivers/gpu/drm/msm/hdmi/hdmi.h                          | 2 ++
> >  drivers/gpu/drm/omapdrm/dss/output.c                     | 1 +
> >  drivers/gpu/drm/omapdrm/omap_drv.c                       | 1 +
> >  drivers/gpu/drm/omapdrm/omap_encoder.c                   | 1 +
> >  drivers/gpu/drm/rcar-du/rcar_du_encoder.c                | 1 +
> >  drivers/gpu/drm/rockchip/rockchip_lvds.c                 | 1 +
> >  drivers/gpu/drm/rockchip/rockchip_rgb.c                  | 1 +
> >  drivers/gpu/drm/sti/sti_dvo.c                            | 1 +
> >  drivers/gpu/drm/sti/sti_hda.c                            | 1 +
> >  drivers/gpu/drm/sti/sti_hdmi.c                           | 1 +
> >  drivers/gpu/drm/sun4i/sun4i_lvds.c                       | 1 +
> >  drivers/gpu/drm/sun4i/sun4i_rgb.c                        | 1 +
> >  drivers/gpu/drm/sun4i/sun4i_tcon.c                       | 1 +
> >  drivers/gpu/drm/tilcdc/tilcdc_external.c                 | 1 +
> >  drivers/gpu/drm/vc4/vc4_dsi.c                            | 1 +
> >  include/drm/drm_crtc.h                                   | 1 -
> >  52 files changed, 52 insertions(+), 1 deletion(-)  
> 
> Overall this looks good to me. Before I ack the patch, how have you
> tested this ? Have you compiled all the DRM/KMS drivers ?

git grep to find all drm_bridge users that were not including
drm_bridge.h directly and then I compiled all impacted drivers. Also
pushed to a tree monitored by kbuild bots to make sure I didn't
forget one of them.

> 
> If you wanted to go one step further you could also remove the forward
> declaration of struct drm_bridge from drm_ctrc.h, as it's not needed
> there.
> 

I'll add a patch doing that.

Thanks,

Boris
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2019-08-21 15:44 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-08 15:11 [PATCH RFC 00/19] drm: Add support for bus-format negotiation Boris Brezillon
2019-08-08 15:11 ` [PATCH RFC 01/19] drm: Stop including drm_bridge.h from drm_crtc.h Boris Brezillon
2019-08-08 18:05   ` Sam Ravnborg
2019-08-20 18:53   ` Laurent Pinchart
2019-08-21 15:44     ` Boris Brezillon [this message]
2019-08-08 15:11 ` [PATCH RFC 02/19] drm: Support custom encoder/bridge enable/disable sequences officially Boris Brezillon
2019-08-20 19:05   ` Laurent Pinchart
2019-08-21  8:21     ` Daniel Vetter
2019-08-21 13:57       ` Laurent Pinchart
2019-08-21 15:39       ` Boris Brezillon
2019-08-21 15:30     ` Boris Brezillon
2019-08-08 15:11 ` [PATCH RFC 03/19] drm/vc4: Get rid of the dsi->bridge field Boris Brezillon
2019-08-08 20:31   ` Eric Anholt
2019-08-08 15:11 ` [PATCH RFC 04/19] drm/exynos: Get rid of exynos_dsi->out_bridge Boris Brezillon
2019-08-08 15:11 ` [PATCH RFC 05/19] drm/exynos: Don't reset bridge->next Boris Brezillon
2019-08-08 21:04   ` Boris Brezillon
2019-08-21 14:01   ` Laurent Pinchart
2019-08-08 15:11 ` [PATCH RFC 06/19] drm/bridge: Create drm_bridge_chain_xx() wrappers Boris Brezillon
2019-08-21 14:45   ` Laurent Pinchart
2019-08-21 15:53     ` Boris Brezillon
2019-08-08 15:11 ` [PATCH RFC 07/19] drm/msm: Use drm_attach_bridge() to attach a bridge to an encoder Boris Brezillon
2019-08-19 17:19   ` Sam Ravnborg
2019-08-21 14:46     ` Laurent Pinchart
2019-08-08 15:11 ` [PATCH RFC 08/19] drm/bridge: Introduce drm_bridge_chain_get_{first, last, next}_bridge() Boris Brezillon
2019-08-08 15:11 ` [PATCH RFC 09/19] drm/bridge: Make the bridge chain a double-linked list Boris Brezillon
2019-08-08 15:11 ` [PATCH RFC 10/19] drm/bridge: Add a drm_bridge_state object Boris Brezillon
2019-08-21 20:14   ` Laurent Pinchart
2019-08-22  9:00     ` Boris Brezillon
2019-12-02 15:52       ` Laurent Pinchart
2019-08-08 15:11 ` [PATCH RFC 11/19] drm/bridge: Patch atomic hooks to take a drm_bridge_state Boris Brezillon
2019-08-22  0:02   ` Laurent Pinchart
2019-08-22  8:25     ` Boris Brezillon
2019-08-08 15:11 ` [PATCH RFC 12/19] drm/bridge: Add an ->atomic_check() hook Boris Brezillon
2019-08-22  0:12   ` Laurent Pinchart
2019-08-22  7:58     ` Boris Brezillon
2019-08-08 15:11 ` [PATCH RFC 13/19] drm/bridge: Add the drm_bridge_chain_get_prev_bridge() helper Boris Brezillon
2019-08-22  0:17   ` Laurent Pinchart
2019-08-22  8:04     ` Boris Brezillon
2019-08-08 15:11 ` [PATCH RFC 14/19] drm/bridge: Add the necessary bits to support bus format negotiation Boris Brezillon
2019-08-14  7:51   ` Neil Armstrong
2019-08-21 18:31     ` Boris Brezillon
2019-08-22  0:55   ` Laurent Pinchart
2019-08-22  7:48     ` Boris Brezillon
2019-08-22  9:29       ` Neil Armstrong
2019-08-22 10:09         ` Boris Brezillon
2019-08-22 10:22           ` Neil Armstrong
2019-08-22 10:34             ` Boris Brezillon
2019-08-22 11:30               ` Neil Armstrong
2019-08-08 15:11 ` [PATCH RFC 15/19] drm/imx: pd: Use bus format/flags provided by the bridge when available Boris Brezillon
2019-08-08 15:11 ` [PATCH RFC 16/19] drm/bridge: lvds-encoder: Add a way to support custom ->atomic_check() implem Boris Brezillon
2019-08-08 15:11 ` [PATCH RFC 17/19] drm/bridge: lvds-encoder: Implement bus format negotiation for sn75lvds83 Boris Brezillon
2019-08-22  0:32   ` Laurent Pinchart
2019-08-22  8:12     ` Boris Brezillon
2019-08-08 15:11 ` [PATCH RFC 18/19] drm/panel: simple: Add support for Toshiba LTA089AC29000 panel Boris Brezillon
2019-08-22  0:36   ` Laurent Pinchart
2019-08-22  8:15     ` Boris Brezillon
2019-08-08 15:11 ` [PATCH RFC 19/19] ARM: dts: imx: imx51-zii-rdu1: Fix the display pipeline definition Boris Brezillon
2019-08-09  6:58 ` [PATCH RFC 00/19] drm: Add support for bus-format negotiation Neil Armstrong

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=20190821174406.10c7af2e@collabora.com \
    --to=boris.brezillon@collabora.com \
    --cc=Chris.Healy@zii.aero \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jernej.skrabec@siol.net \
    --cc=jonas@kwiboo.se \
    --cc=kernel@collabora.com \
    --cc=kyungmin.park@samsung.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=narmstrong@baylibre.com \
    --cc=sam@ravnborg.org \
    --cc=sw0312.kim@samsung.com \
    --cc=thierry.reding@gmail.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