[PATCH] drm: bridge: ldb: Drop DE flip from Freescale i.MX8MP LDB bridge

Robert Foss robert.foss at linaro.org
Wed Jul 6 13:32:14 UTC 2022


On Thu, 30 Jun 2022 at 19:40, Marek Vasut <marex at denx.de> wrote:
>
> The DE inversion is implemented in LCDIFv3 driver and is no longer
> needed in the LDB bridge which does not invert the DE signal. Drop
> the inversion.
>
> Fixes: 463db5c2ed4ae ("drm: bridge: ldb: Implement simple Freescale i.MX8MP LDB bridge")
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> Cc: Lucas Stach <l.stach at pengutronix.de>
> Cc: Maxime Ripard <maxime at cerno.tech>
> Cc: Peng Fan <peng.fan at nxp.com>
> Cc: Robby Cai <robby.cai at nxp.com>
> Cc: Robert Foss <robert.foss at linaro.org>
> Cc: Sam Ravnborg <sam at ravnborg.org>
> Cc: Thomas Zimmermann <tzimmermann at suse.de>
> To: dri-devel at lists.freedesktop.org
> ---
>  drivers/gpu/drm/bridge/fsl-ldb.c | 17 -----------------
>  1 file changed, 17 deletions(-)
>
> diff --git a/drivers/gpu/drm/bridge/fsl-ldb.c b/drivers/gpu/drm/bridge/fsl-ldb.c
> index b2675c769a550..10077d4aed358 100644
> --- a/drivers/gpu/drm/bridge/fsl-ldb.c
> +++ b/drivers/gpu/drm/bridge/fsl-ldb.c
> @@ -74,22 +74,6 @@ static int fsl_ldb_attach(struct drm_bridge *bridge,
>                                  bridge, flags);
>  }
>
> -static int fsl_ldb_atomic_check(struct drm_bridge *bridge,
> -                               struct drm_bridge_state *bridge_state,
> -                               struct drm_crtc_state *crtc_state,
> -                               struct drm_connector_state *conn_state)
> -{
> -       /* Invert DE signal polarity. */
> -       bridge_state->input_bus_cfg.flags &= ~(DRM_BUS_FLAG_DE_LOW |
> -                                              DRM_BUS_FLAG_DE_HIGH);
> -       if (bridge_state->output_bus_cfg.flags & DRM_BUS_FLAG_DE_LOW)
> -               bridge_state->input_bus_cfg.flags |= DRM_BUS_FLAG_DE_HIGH;
> -       else if (bridge_state->output_bus_cfg.flags & DRM_BUS_FLAG_DE_HIGH)
> -               bridge_state->input_bus_cfg.flags |= DRM_BUS_FLAG_DE_LOW;
> -
> -       return 0;
> -}
> -
>  static void fsl_ldb_atomic_enable(struct drm_bridge *bridge,
>                                   struct drm_bridge_state *old_bridge_state)
>  {
> @@ -241,7 +225,6 @@ fsl_ldb_mode_valid(struct drm_bridge *bridge,
>
>  static const struct drm_bridge_funcs funcs = {
>         .attach = fsl_ldb_attach,
> -       .atomic_check = fsl_ldb_atomic_check,
>         .atomic_enable = fsl_ldb_atomic_enable,
>         .atomic_disable = fsl_ldb_atomic_disable,
>         .atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state,
> --
> 2.35.1
>

Reviewed-by: Robert Foss <robert.foss at linaro.org>

Applied to drm-misc-next.


More information about the dri-devel mailing list