Filter out all modes with clock higher than 165 MHz for DVI connector in drm/udl driver.
Signed-off-by: Robert Tarasov <[email protected]> --- drivers/gpu/drm/udl/udl_connector.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/udl/udl_connector.c b/drivers/gpu/drm/udl/udl_connector.c index 68b221b9a01f..3b9be500b9ae 100644 --- a/drivers/gpu/drm/udl/udl_connector.c +++ b/drivers/gpu/drm/udl/udl_connector.c @@ -109,6 +109,14 @@ static int udl_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { struct udl_device *udl = connector->dev->dev_private; + int con_type = connector->connector_type; + + if ((con_type == DRM_MODE_CONNECTOR_DVII || + con_type == DRM_MODE_CONNECTOR_DVID || + con_type == DRM_MODE_CONNECTOR_DVIA) && + mode->clock > 165000) + return MODE_CLOCK_HIGH; + if (!udl->sku_pixel_limit) return 0; -- 2.21.0.360.g471c308f928-goog _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
