From: Zhao Yakui Date: Thu, 4 Mar 2010 08:25:55 +0000 (+0000) Subject: drm: remove the EDID blob stored in the EDID property when it is disconnected X-Git-Tag: v2.6.33.3~136 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5d085d89715692c6b4c918a42ee6638468544812;p=karo-tx-linux.git drm: remove the EDID blob stored in the EDID property when it is disconnected commit 725398322d05486109375fbb85c3404108881e17 upstream. Now the EDID property will be updated when the corresponding EDID can be obtained from the external display device. But after the external device is plugged-out, the EDID property is not updated. In such case we still get the corresponding EDID property although it is already detected as disconnected. https://bugs.freedesktop.org/show_bug.cgi?id=26743 Signed-off-by: Zhao Yakui Signed-off-by: Zhenyu Wang Signed-off-by: Dave Airlie Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 7d0f00a935fa..99907c32ea29 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c @@ -104,6 +104,7 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector, if (connector->status == connector_status_disconnected) { DRM_DEBUG_KMS("%s is disconnected\n", drm_get_connector_name(connector)); + drm_mode_connector_update_edid_property(connector, NULL); goto prune; }