|
@@ -57,6 +57,14 @@ static int udl_get_modes(struct drm_connector *connector)
|
|
|
|
|
|
edid = (struct edid *)udl_get_edid(udl);
|
|
edid = (struct edid *)udl_get_edid(udl);
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * We only read the main block, but if the monitor reports extension
|
|
|
|
+ * blocks then the drm edid code expects them to be present, so patch
|
|
|
|
+ * the extension count to 0.
|
|
|
|
+ */
|
|
|
|
+ edid->checksum += edid->extensions;
|
|
|
|
+ edid->extensions = 0;
|
|
|
|
+
|
|
drm_mode_connector_update_edid_property(connector, edid);
|
|
drm_mode_connector_update_edid_property(connector, edid);
|
|
ret = drm_add_edid_modes(connector, edid);
|
|
ret = drm_add_edid_modes(connector, edid);
|
|
kfree(edid);
|
|
kfree(edid);
|