drm: rcar-du: Don't select VSP1 sink on Gen3
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 21 Feb 2022 16:54:41 +0000 (18:54 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 3 Mar 2022 12:05:55 +0000 (14:05 +0200)
The VSP1 sink selection through register DEFR8 is only available on Gen2
hardware. Skip it on Gen3.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_plane.c

index 862197be1e012bfcb3f4296c6c02d66ab9423668..9b058d6cb0326631b23b855680a35141a9a92919 100644 (file)
@@ -549,8 +549,10 @@ void __rcar_du_plane_setup(struct rcar_du_group *rgrp,
                rcar_du_plane_setup_format(rgrp, (state->hwindex + 1) % 8,
                                           state);
 
-       if (rcdu->info->gen < 3)
-               rcar_du_plane_setup_scanout(rgrp, state);
+       if (rcdu->info->gen >= 3)
+               return;
+
+       rcar_du_plane_setup_scanout(rgrp, state);
 
        if (state->source == RCAR_DU_PLANE_VSPD1) {
                unsigned int vspd1_sink = rgrp->index ? 2 : 0;