drm: rcar-du: Fix vblank initialization
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 17 Oct 2018 19:08:31 +0000 (22:08 +0300)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 23 Nov 2018 11:51:22 +0000 (13:51 +0200)
The drm_vblank_init() takes the total number of CRTCs as an argument,
but the rcar-du driver passes a bitmask of the CRTC indices. Fix it.

Fixes: 4bf8e1962f91 ("drm: Renesas R-Car Display Unit DRM driver")
Reported-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
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_kms.c

index 4ebd61ecbee177ab928d7837b28469d049f3d491..fe6f65c94eefed9e9e3d594db631439524248d77 100644 (file)
@@ -582,7 +582,7 @@ int rcar_du_modeset_init(struct rcar_du_device *rcdu)
         * Initialize vertical blanking interrupts handling. Start with vblank
         * disabled for all CRTCs.
         */
-       ret = drm_vblank_init(dev, (1 << rcdu->num_crtcs) - 1);
+       ret = drm_vblank_init(dev, rcdu->num_crtcs);
        if (ret < 0)
                return ret;