drm/omap: decrease min width & height
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 23 Aug 2016 09:35:39 +0000 (12:35 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Apr 2017 09:36:40 +0000 (12:36 +0300)
mode_config's min_width and min_height are both set to 32, which is
overly restrictive.

The real limits depend on whether we're configuring a crtc or a plane,
but a limit of 8x2 is safe for both cases.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/omapdrm/omap_drv.c

index 79a4aad35e0fd043008d7f346f8c46793532ca26..fe83efbbf127824eaa6a8bc34c0e37fa9063a9e4 100644 (file)
@@ -488,8 +488,8 @@ static int omap_modeset_init(struct drm_device *dev)
                priv->num_planes, priv->num_crtcs, priv->num_encoders,
                priv->num_connectors);
 
-       dev->mode_config.min_width = 32;
-       dev->mode_config.min_height = 32;
+       dev->mode_config.min_width = 8;
+       dev->mode_config.min_height = 2;
 
        /* note: eventually will need some cpu_is_omapXYZ() type stuff here
         * to fill in these limits properly on different OMAP generations..