[PATCH] drm/bridge: Centralize error message when bridge attach fails

Tomi Valkeinen tomba at kernel.org
Thu Apr 15 05:56:26 UTC 2021


On 15/04/2021 04:47, Laurent Pinchart wrote:
> Being informed of a failure to attach a bridge is useful, and many
> drivers prints an error message in that case. Move the message to
> drm_bridge_attach() to avoid code duplication.
> 
> Suggested-by: Stephen Boyd <swboyd at chromium.org>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas at ideasonboard.com>
> ---
>   drivers/gpu/drm/bridge/analogix/analogix_dp_core.c |  9 +--------
>   drivers/gpu/drm/bridge/analogix/anx7625.c          |  5 +----
>   drivers/gpu/drm/bridge/synopsys/dw-hdmi.c          |  1 -
>   drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c      | 10 +---------
>   drivers/gpu/drm/drm_bridge.c                       | 10 ++++++++++
>   drivers/gpu/drm/exynos/exynos_dp.c                 |  5 +----
>   drivers/gpu/drm/exynos/exynos_hdmi.c               |  5 +----
>   drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c       |  9 +--------
>   drivers/gpu/drm/imx/dcss/dcss-kms.c                |  5 +----
>   drivers/gpu/drm/imx/imx-ldb.c                      |  4 +---
>   drivers/gpu/drm/imx/parallel-display.c             |  5 +----
>   drivers/gpu/drm/ingenic/ingenic-drm-drv.c          |  4 +---
>   drivers/gpu/drm/kmb/kmb_dsi.c                      |  1 -
>   drivers/gpu/drm/mcde/mcde_dsi.c                    |  9 +--------
>   drivers/gpu/drm/mediatek/mtk_dpi.c                 |  4 +---
>   drivers/gpu/drm/mediatek/mtk_hdmi.c                |  5 +----
>   drivers/gpu/drm/omapdrm/omap_drv.c                 |  6 +-----
>   drivers/gpu/drm/rockchip/rockchip_lvds.c           |  5 +----
>   drivers/gpu/drm/rockchip/rockchip_rgb.c            |  5 +----
>   drivers/gpu/drm/sti/sti_dvo.c                      |  4 +---
>   drivers/gpu/drm/sun4i/sun4i_lvds.c                 |  4 +---
>   drivers/gpu/drm/sun4i/sun4i_rgb.c                  |  4 +---
>   drivers/gpu/drm/tegra/rgb.c                        |  5 +----
>   drivers/gpu/drm/tidss/tidss_kms.c                  |  4 +---
>   drivers/gpu/drm/tilcdc/tilcdc_external.c           |  4 +---
>   drivers/gpu/drm/vc4/vc4_dsi.c                      |  4 +---
>   26 files changed, 33 insertions(+), 103 deletions(-)

Reviewed-by: Tomi Valkeinen <tomi.valkeinen at ideasonboard.com>

  Tomi



More information about the dri-devel mailing list